1 | <?php declare(strict_types=1); |
||
8 | class LogWriter implements OnCloseListener, OnConnectListener, OnShutdownListener, OnStartListener, LoggerInterface |
||
9 | { |
||
10 | private $logger; |
||
11 | |||
12 | 21 | public function __construct(LoggerInterface $logger = null) |
|
16 | |||
17 | 5 | public function onClose(Server $server, Client $client): void |
|
24 | |||
25 | 7 | public function onConnect(Server $server, Client $client): void |
|
32 | |||
33 | 2 | public function onShutdown(Server $server): void |
|
37 | |||
38 | 2 | public function onStart(Server $server): void |
|
45 | |||
46 | public function getLogger(): LoggerInterface |
||
50 | |||
51 | 1 | public function emergency($message, array $context = []) |
|
55 | |||
56 | 3 | public function alert($message, array $context = []) |
|
60 | |||
61 | 1 | public function critical($message, array $context = []) |
|
65 | |||
66 | 1 | public function error($message, array $context = []) |
|
70 | |||
71 | 1 | public function warning($message, array $context = []) |
|
75 | |||
76 | 1 | public function notice($message, array $context = []) |
|
80 | |||
81 | 11 | public function info($message, array $context = []) |
|
85 | |||
86 | 1 | public function debug($message, array $context = []) |
|
90 | |||
91 | public function log($level, $message, array $context = []) |
||
95 | } |
||
96 |