$facility
$facility :
Logs to syslog service.
usage example:
$log = new Logger('application'); $syslog = new SyslogHandler('myfacility', 'local6'); $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%"); $syslog->setFormatter($formatter); $log->pushHandler($syslog);
__construct(string $ident, string|integer $facility = LOG_USER, string|integer $level = \Monolog\Logger::DEBUG, boolean $bubble = true, integer $logopts = LOG_PID)
| string | $ident | |
| string|integer | $facility | Either one of the names of the keys in $this->facilities, or a LOG_* facility constant |
| string|integer | $level | The minimum logging level at which this handler will be triggered |
| boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
| integer | $logopts | Option flags for the openlog() call, defaults to LOG_PID |
setFormatter(\Monolog\Formatter\FormatterInterface $formatter)
{@inheritdoc}
| \Monolog\Formatter\FormatterInterface | $formatter |