ZP-765 Add AfterInitialization function called in the ZLog static class....

ZP-765 Add AfterInitialization function called in the ZLog static class. Released under the Affero GNU General Public License (AGPL) version 3.
parent 1595a647
......@@ -175,6 +175,7 @@ class ZLog {
self::$logger->SetSpecialLogUsers($specialLogUsers);
self::$logger->SetDevid('['. Request::GetDeviceID() .']');
self::$logger->SetPidstr('[' . str_pad(@getmypid(),5," ",STR_PAD_LEFT) . ']');
self::$logger->AfterInitialize();
}
return self::$logger;
}
......
......@@ -221,6 +221,14 @@ abstract class Log {
/**
* This function is used as an event for log implementer.
* It happens when the ZLog static class is finished with the initialization of this instance.
*/
public function AfterInitialize() {
}
/**
* This function is used as an event for log implementer.
* It happens when the a call to the Log function is finished.
*/
protected function afterLog($loglevel, $message) {
}
......
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