1 | <?php |
||
17 | class Logger implements ILogger { |
||
18 | |||
19 | /** @var array */ |
||
20 | private $context; |
||
21 | |||
22 | /** @var ILogger */ |
||
23 | private $logger; |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | * @param string $appName |
||
28 | * @param ILogger $logger |
||
29 | */ |
||
30 | 8 | public function __construct($appName, ILogger $logger) { |
|
31 | 8 | $this->context = [ |
|
32 | 8 | 'app' => $appName, |
|
33 | ]; |
||
34 | 8 | $this->logger = $logger; |
|
35 | 8 | } |
|
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | 1 | public function emergency($message, array $context = []) { |
|
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | 1 | public function alert($message, array $context = []) { |
|
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | 1 | public function critical($message, array $context = []) { |
|
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | 1 | public function error($message, array $context = []) { |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 1 | public function warning($message, array $context = []) { |
|
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | 1 | public function notice($message, array $context = []) { |
|
78 | |||
79 | /** |
||
80 | * @inheritdoc |
||
81 | */ |
||
82 | 1 | public function info($message, array $context = []) { |
|
85 | |||
86 | /** |
||
87 | * @inheritdoc |
||
88 | */ |
||
89 | 1 | public function debug($message, array $context = []) { |
|
92 | |||
93 | /** |
||
94 | * @inheritdoc |
||
95 | */ |
||
96 | public function log($level, $message, array $context = array()) { |
||
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | */ |
||
103 | public function logException(\Exception $exception, array $context = array()) { |
||
106 | |||
107 | } |
||
108 |