X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FHelper%2FLogger.php;h=01804c817845f3442b97d8c7b633a014548228d8;hb=57812a66f7e807af1c37d4e79913776b52dfd2c3;hp=85353ebf074ac51af21607b16d951a4e8c0acae4;hpb=f385a25ad132dac71a6a495f1dee295ad0e72883;p=plcapi.git diff --git a/src/Helper/Logger.php b/src/Helper/Logger.php index 85353eb..01804c8 100644 --- a/src/Helper/Logger.php +++ b/src/Helper/Logger.php @@ -28,7 +28,7 @@ class Logger * @param string $message * @param string $encoding */ - public function debugMessage($message, $encoding=null) + public function debugMessage($message, $encoding = null) { // US-ASCII is a warning for PHP and a fatal for HHVM if ($encoding == 'US-ASCII') { @@ -56,4 +56,13 @@ class Logger // let the user see this now in case there's a time out later... flush(); } + + /** + * Writes a message to the error log + * @param string $message + */ + public function errorLog($message) + { + error_log($message); + } }