DEFAULT_LEVEL
DEFAULT_LEVEL = "E_ERROR_WARNING" : string
Logging method abstract class.
$registry : \donbidon\Core\Registry\I_Registry
Part of registry related to method
$evtManager : \donbidon\Core\Event\Manager
Event manager instance.
__construct(\donbidon\Core\Registry\I_Registry $registry, \donbidon\Core\Event\Manager $evtManager)
Initializes logger according to environment.
\donbidon\Core\Registry\I_Registry | $registry | Part of registry related to method |
\donbidon\Core\Event\Manager | $evtManager |
handler(string $name, \donbidon\Core\Event\Args $args) : void
Logging handler.
string | $name | |
\donbidon\Core\Event\Args | $args |
onUpdateRegistry(string $name, \donbidon\Core\Event\Args $args) : void
Updating method registry handler.
$evtManager->fire(':updateLogRegistry:', new Args([
'conditions' => [
'name' => "File",
'level' => "E_ALL",
],
'changes' => [
'path' => $path,
],
]));
string | $name | |
\donbidon\Core\Event\Args | $args |
log(\donbidon\Core\Event\Args $args) : void
Logger.
\donbidon\Core\Event\Args | $args |
init(\donbidon\Core\Event\Manager $evtManager) : void
Adds event handlers.
\donbidon\Core\Event\Manager | $evtManager |
render(\donbidon\Core\Event\Args $args) : string
Renders message according ro format.
\donbidon\Core\Event\Args | $args |