PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / google / psr / log / src / NullLogger.php

NullLogger.php in Media Cloud Sync 1.4.1, at includes/sdk/google/psr/log/src/NullLogger.php

27 lines 664 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\GCP\Psr\Log;
4
5 /**
6 * This Logger can be used to avoid conditional log calls.
7 *
8 * Logging should always be optional, and if no logger is provided to your
9 * library creating a NullLogger instance to have something to throw logs at
10 * is a good way to avoid littering your code with `if ($this->logger) { }`
11 * blocks.
12 */
13 class NullLogger extends AbstractLogger
14 {
15 /**
16 * Logs with an arbitrary level.
17 *
18 * @param mixed[] $context
19 *
20 * @throws \Psr\Log\InvalidArgumentException
21 */
22 public function log($level, string|\Stringable $message, array $context = []) : void
23 {
24 // noop
25 }
26 }
27