finwe / logger
Logger allowing either log by selected logger or to stack loggers and log to each of them.
Installs: 622
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 3
Open Issues: 0
pkg:composer/finwe/logger
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2018-05-29 10:20:47 UTC
README
Logger allowing either log by selected logger or to stack loggers and log to each of them.
Originally comes from http://addons.nette.org/cs/logger by Jan Smitka and Martin Pecka
Example
$fileLogger = new FileLogger();
$outputLogger = new OutputLogger();
$stack = new Stack(array(
'loggers' => array($fileLogger, $outputLogger)
));
$stack->logMessage('Just a casual informational message');
$stack->logMessage(ILogger::ALERT, 'Alert, CPU load exceeded %d %%', 300);