Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dundee/logger
Enhanced logging for PHP 5.3
https://github.com/dundee/logger
Last synced: about 1 month ago
JSON representation
Enhanced logging for PHP 5.3
- Host: GitHub
- URL: https://github.com/dundee/logger
- Owner: dundee
- Created: 2014-02-03T14:33:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-03T14:39:44.000Z (almost 11 years ago)
- Last Synced: 2024-10-16T01:52:53.629Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Stackable logger
====================================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);