|
|
@@ -48,14 +48,6 @@ class SyslogHandler extends AbstractHandler
|
|
|
'cron' => LOG_CRON,
|
|
|
'daemon' => LOG_DAEMON,
|
|
|
'kern' => LOG_KERN,
|
|
|
- 'local0' => LOG_LOCAL0,
|
|
|
- 'local1' => LOG_LOCAL1,
|
|
|
- 'local2' => LOG_LOCAL2,
|
|
|
- 'local3' => LOG_LOCAL3,
|
|
|
- 'local4' => LOG_LOCAL4,
|
|
|
- 'local5' => LOG_LOCAL5,
|
|
|
- 'local6' => LOG_LOCAL6,
|
|
|
- 'local7' => LOG_LOCAL7,
|
|
|
'lpr' => LOG_LPR,
|
|
|
'mail' => LOG_MAIL,
|
|
|
'news' => LOG_NEWS,
|
|
|
@@ -68,6 +60,17 @@ class SyslogHandler extends AbstractHandler
|
|
|
{
|
|
|
parent::__construct($level, $bubble);
|
|
|
|
|
|
+ if (false === strpos(PHP_OS, 'WIN')) {
|
|
|
+ $this->facilities['local0'] = LOG_LOCAL0;
|
|
|
+ $this->facilities['local1'] = LOG_LOCAL1;
|
|
|
+ $this->facilities['local2'] = LOG_LOCAL2;
|
|
|
+ $this->facilities['local3'] = LOG_LOCAL3;
|
|
|
+ $this->facilities['local4'] = LOG_LOCAL4;
|
|
|
+ $this->facilities['local5'] = LOG_LOCAL5;
|
|
|
+ $this->facilities['local6'] = LOG_LOCAL6;
|
|
|
+ $this->facilities['local7'] = LOG_LOCAL7;
|
|
|
+ }
|
|
|
+
|
|
|
// convert textual description of facility to syslog constant
|
|
|
if (array_key_exists(strtolower($facility), $this->facilities)) {
|
|
|
$facility = $this->facilities[strtolower($facility)];
|