mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 19:54:46 +01:00
LSlog_staticLoggerClass : Fix self :: $logger inheritance problem
This commit is contained in:
parent
2f8d644af0
commit
22b4a7f712
1 changed files with 1 additions and 5 deletions
|
@ -27,8 +27,6 @@
|
||||||
*/
|
*/
|
||||||
class LSlog_staticLoggerClass {
|
class LSlog_staticLoggerClass {
|
||||||
|
|
||||||
// Logger
|
|
||||||
protected static $logger = null;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Log a message via class logger
|
* Log a message via class logger
|
||||||
|
@ -39,9 +37,7 @@ class LSlog_staticLoggerClass {
|
||||||
* @retval void
|
* @retval void
|
||||||
**/
|
**/
|
||||||
protected static function log($level, $message) {
|
protected static function log($level, $message) {
|
||||||
if (is_null(self :: $logger))
|
LSlog :: get_logger(get_called_class()) -> logging($level, $message);
|
||||||
self :: $logger = LSlog :: get_logger(get_called_class());
|
|
||||||
self :: $logger -> logging($level, $message);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue