43 'authpriv' => LOG_AUTHPRIV,
45 'daemon' => LOG_DAEMON,
50 'syslog' => LOG_SYSLOG,
64 if (!defined(
'PHP_WINDOWS_VERSION_BUILD')) {
65 $this->facilities[
'local0'] = LOG_LOCAL0;
66 $this->facilities[
'local1'] = LOG_LOCAL1;
67 $this->facilities[
'local2'] = LOG_LOCAL2;
68 $this->facilities[
'local3'] = LOG_LOCAL3;
69 $this->facilities[
'local4'] = LOG_LOCAL4;
70 $this->facilities[
'local5'] = LOG_LOCAL5;
71 $this->facilities[
'local6'] = LOG_LOCAL6;
72 $this->facilities[
'local7'] = LOG_LOCAL7;
76 if (array_key_exists(strtolower(
$facility), $this->facilities)) {
78 } elseif (!in_array(
$facility, array_values($this->facilities),
true)) {
79 throw new \UnexpectedValueException(
'Unknown facility value "'.
$facility.
'" given');
90 return new LineFormatter(
'%channel%.%level_name%: %message% %context% %extra%');
Base Handler class providing the Handler structure.
Common syslog functionality.
__construct($facility=LOG_USER, $level=Logger::DEBUG, $bubble=true)
$logLevels
Translates Monolog log levels to syslog log priorities.
$facilities
List of valid log facility names.
getDefaultFormatter()
{Gets the default formatter.FormatterInterface}
const EMERGENCY
Urgent alert.
const ERROR
Runtime errors.
const CRITICAL
Critical conditions.
const WARNING
Exceptional occurrences that are not errors.
const INFO
Interesting events.
const DEBUG
Detailed debug information.
const NOTICE
Uncommon events.
const ALERT
Action must be taken immediately.