diff options
author | Andrew Dolgov <[email protected]> | 2018-06-20 14:58:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-06-20 14:58:09 +0300 |
commit | 2aaefbfa54447c37a74aaf126f864fac629e9bd5 (patch) | |
tree | 971c158cde0e95b7610c0a3d3072c45338cddd7d /vendor/Psr/Log/NullLogger.php | |
parent | d00d515320adb57165f7a69bd1c9afc72d51b87f (diff) |
update autoloader to consider namespaces for third party libraries: placed and loaded from vendor/namespace/classpath.php
update readability to a newer implementation based on Readability.js (https://github.com/andreskrey/readability.php)
add vendor/Psr/Log interface required for the above
Diffstat (limited to 'vendor/Psr/Log/NullLogger.php')
-rw-r--r-- | vendor/Psr/Log/NullLogger.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/Psr/Log/NullLogger.php b/vendor/Psr/Log/NullLogger.php new file mode 100644 index 000000000..d8cd682c8 --- /dev/null +++ b/vendor/Psr/Log/NullLogger.php @@ -0,0 +1,28 @@ +<?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 + } +} |