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;
74 $this->facilities[
'local0'] = 128;
75 $this->facilities[
'local1'] = 136;
76 $this->facilities[
'local2'] = 144;
77 $this->facilities[
'local3'] = 152;
78 $this->facilities[
'local4'] = 160;
79 $this->facilities[
'local5'] = 168;
80 $this->facilities[
'local6'] = 176;
81 $this->facilities[
'local7'] = 184;
85 if (array_key_exists(strtolower(
$facility), $this->facilities)) {
87 } elseif (!in_array(
$facility, array_values($this->facilities),
true)) {
88 throw new \UnexpectedValueException(
'Unknown facility value "'.
$facility.
'" given');
99 return new LineFormatter(
'%channel%.%level_name%: %message% %context% %extra%');
const NOTICE
Uncommon events.
const DEBUG
Detailed debug information.
$facilities
List of valid log facility names.
const ERROR
Runtime errors.
Base Handler class providing the Handler structure.
$logLevels
Translates Monolog log levels to syslog log priorities.
__construct($facility=LOG_USER, $level=Logger::DEBUG, $bubble=true)
const WARNING
Exceptional occurrences that are not errors.
const EMERGENCY
Urgent alert.
Create styles array
The data for the language used.
const CRITICAL
Critical conditions.
const ALERT
Action must be taken immediately.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Common syslog functionality.
const INFO
Interesting events.