Commit 130a7468 authored by Taddeus Kroes's avatar Taddeus Kroes

Added 'log' alias for Logger::debug(), for usage in combination with PHPActiveRecord.

parent b0cfb3cd
......@@ -102,6 +102,14 @@ class Logger extends Base {
$this->process($message, self::DEBUG);
}
/**
* Alias for 'debug', used by PHPActiveRecord.
* @codeCoverageIgnore
*/
function log($message) {
$this->debug($message);
}
private function process($message, $level) {
if( $level <= $this->level )
$this->output[] = array($message, $level);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment