CoreFiles by mySites.guru
NullLogger.php28 lines, 651 bytes, from Joomla_3.9.13-Stable-Full_Package.zip
Raw History Compare with 3.9.12
md5
d66f51c1fc729b09e54fd8821c7dfe46
sha1
e7b8b644efbaa3d4a9bb1a4086f974897ad75e42
sha256
842d3bac97738101b1b0f8540f8c5be2477259b9235a6f623e9e3798106685de
<?php

namespace 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  $level
     * @param string $message
     * @param array  $context
     *
     * @return void
     */
    public function log($level, $message, array $context = array())
    {
        // noop
    }
}

The same content is in 97 releases, Joomla 3.7.0-alpha2 to 4.0.0-alpha12. See them all, or every version of this file.