$facility
$facility : int
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);
$facility : int
$logLevels : array
Translates Monolog log levels to syslog log priorities.
$facilities : array<string,int>
List of valid log facility names.
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$ident : string
$logopts : int
__construct(string $ident, string|int $facility = LOG_USER, mixed $level = Logger::DEBUG, bool $bubble = true, int $logopts = LOG_PID) : mixed
string | $ident | |
string|int | $facility | Either one of the names of the keys in $this->facilities, or a LOG_* facility constant |
mixed | $level | |
bool | $bubble | |
int | $logopts | Option flags for the openlog() call, defaults to LOG_PID |