1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 15:02:28 +01:00

Define properties

This commit is contained in:
Jordi Boggiano 2013-05-03 11:05:12 +02:00
parent 4fb7197b56
commit 1eed379a3b

View File

@ -29,6 +29,10 @@ use Monolog\Formatter\LineFormatter;
*/
class SyslogHandler extends AbstractProcessingHandler
{
protected $ident;
protected $logopts;
protected $facility;
/**
* Translates Monolog log levels to syslog log priorities.
*/
@ -110,7 +114,7 @@ class SyslogHandler extends AbstractProcessingHandler
if (!openlog($this->ident, $this->logopts, $this->facility)) {
throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"');
}
syslog($this->logLevels[$record['level']], (string)$record['formatted']);
syslog($this->logLevels[$record['level']], (string) $record['formatted']);
}
/**