1 | <?php |
||
35 | class SyslogHandler extends HandlerAbstract |
||
36 | { |
||
37 | /** |
||
38 | * syslog facility |
||
39 | * |
||
40 | * @var int |
||
41 | * @access protected |
||
42 | */ |
||
43 | protected $facility; |
||
44 | |||
45 | /** |
||
46 | * syslog options |
||
47 | * |
||
48 | * @var int |
||
49 | * @access protected |
||
50 | */ |
||
51 | protected $logopts; |
||
52 | |||
53 | /** |
||
54 | * syslog priorities |
||
55 | * |
||
56 | * @var array |
||
57 | * @access protected |
||
58 | */ |
||
59 | protected $priorities = [ |
||
60 | LogLevel::DEBUG => LOG_DEBUG, |
||
61 | LogLevel::INFO => LOG_INFO, |
||
62 | LogLevel::NOTICE => LOG_NOTICE, |
||
63 | LogLevel::WARNING => LOG_WARNING, |
||
64 | LogLevel::ERROR => LOG_ERR, |
||
65 | LogLevel::CRITICAL => LOG_CRIT, |
||
66 | LogLevel::ALERT => LOG_ALERT, |
||
67 | LogLevel::EMERGENCY => LOG_EMERG, |
||
68 | ]; |
||
69 | |||
70 | /** |
||
71 | * @param int $facility |
||
72 | * @param int $logOpts |
||
73 | * @param FormatterInterface $formatter |
||
74 | * @param bool $stopPropagation |
||
75 | * @access public |
||
76 | * @since 2.0.1 removed level param |
||
77 | */ |
||
78 | public function __construct( |
||
88 | |||
89 | /** |
||
90 | * {@inheritDoc} |
||
91 | */ |
||
92 | protected function write(LogEntryInterface $logEntry) |
||
108 | |||
109 | /** |
||
110 | * {@inheritDoc} |
||
111 | */ |
||
112 | protected function close() |
||
116 | } |
||
117 |