# media-cloud-sync/1.4.1/includes/sdk/google/psr/log/src/NullLogger.php

Media Cloud Sync, version 1.4.1. 27 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.4.1/code/includes/sdk/google/psr/log/src/NullLogger.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.4.1/raw/includes/sdk/google/psr/log/src/NullLogger.php
- Modified: 2026-05-26T18:20:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.4.1/code/includes/sdk/google/psr/log/src/NullLogger.php#L10-L20`.

```php
<?php

namespace Dudlewebs\WPMCS\GCP\Psr\Log;

/**
 * This Logger can be used to avoid conditional log calls.
 *
 * Logging should always be optional, and if no logger is provided to your
 * library creating a NullLogger instance to have something to throw logs at
 * is a good way to avoid littering your code with `if ($this->logger) { }`
 * blocks.
 */
class NullLogger extends AbstractLogger
{
    /**
     * Logs with an arbitrary level.
     *
     * @param mixed[] $context
     *
     * @throws \Psr\Log\InvalidArgumentException
     */
    public function log($level, string|\Stringable $message, array $context = []) : void
    {
        // noop
    }
}

```
