diff options
Diffstat (limited to 'app/Core/Log/Stderr.php')
-rw-r--r-- | app/Core/Log/Stderr.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/Core/Log/Stderr.php b/app/Core/Log/Stderr.php new file mode 100644 index 00000000..fbe82a8c --- /dev/null +++ b/app/Core/Log/Stderr.php @@ -0,0 +1,25 @@ +<?php + +namespace Kanboard\Core\Log; + +/** + * Stderr logger + * + * @package Kanboard\Core\Log + * @author Frédéric Guillot + */ +class Stderr extends Base +{ + /** + * Logs with an arbitrary level. + * + * @param mixed $level + * @param string $message + * @param array $context + * @return null + */ + public function log($level, $message, array $context = array()) + { + file_put_contents('php://stderr', $this->formatMessage($level, $message, $context), FILE_APPEND); + } +} |