1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00

Added CRITICAL and ALERT levels

This commit is contained in:
Jordi Boggiano
2011-05-02 15:39:46 +02:00
parent 252058251d
commit d3e89dbed1
4 changed files with 58 additions and 18 deletions

View File

@@ -33,10 +33,12 @@ class SyslogHandler extends AbstractHandler
* Translates Monolog log levels to syslog log priorities.
*/
private $logLevels = array(
Logger::DEBUG => LOG_DEBUG,
Logger::INFO => LOG_INFO,
Logger::WARNING => LOG_WARNING,
Logger::ERROR => LOG_ERR,
Logger::DEBUG => LOG_DEBUG,
Logger::INFO => LOG_INFO,
Logger::WARNING => LOG_WARNING,
Logger::ERROR => LOG_ERR,
Logger::CRITICAL => LOG_CRIT,
Logger::ALERT => LOG_ALERT,
);
/**