LSlog_staticLoggerClass : Fix self :: $logger inheritance problem

This commit is contained in:
Benjamin Renard 2020-05-08 14:57:24 +02:00
parent 2f8d644af0
commit 22b4a7f712

View file

@ -27,8 +27,6 @@
*/
class LSlog_staticLoggerClass {
// Logger
protected static $logger = null;
/*
* Log a message via class logger
@ -39,9 +37,7 @@ class LSlog_staticLoggerClass {
* @retval void
**/
protected static function log($level, $message) {
if (is_null(self :: $logger))
self :: $logger = LSlog :: get_logger(get_called_class());
self :: $logger -> logging($level, $message);
LSlog :: get_logger(get_called_class()) -> logging($level, $message);
}
/**