CoreFiles by mySites.guru
NullLogger.php27 lines, 641 bytes, from Joomla_3.7.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 3.6.0-alpha
md5
e71559fea0239b7441d221f8c7beae5b
sha1
b6e7c878832614c574e641cbadf1b053e11042ba
sha256
0d6330fefcadc8f9739f6badc4dbcf0d81e3a10c37b20275fc63780efcbbac33
<?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 null
     */
    public function log($level, $message, array $context = array())
    {
        // noop
    }
}

The same content is in 50 releases, Joomla 3.4.0-alpha to 3.7.0-alpha1. See them all, or every version of this file.