1 | <?php |
||
17 | class Syslog extends AbstractAdapter |
||
18 | { |
||
19 | /** |
||
20 | * Syslog ident |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $ident; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Option |
||
29 | * |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $option = LOG_PID; |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Facility |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $facility; |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Set options |
||
45 | * |
||
46 | * @return AdapterInterface |
||
47 | */ |
||
48 | public function setOptions(? Iterable $config = null): AdapterInterface |
||
77 | |||
78 | |||
79 | /** |
||
80 | * Log |
||
81 | * |
||
82 | * @param string $level |
||
83 | * @param string $message |
||
84 | * @return bool |
||
85 | */ |
||
86 | public function log(string $level, string $message): bool |
||
90 | } |
||
91 |