1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the Hautelook\AliceBundle package. |
5
|
|
|
* |
6
|
|
|
* (c) Baldur Rensch <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Hautelook\AliceBundle\Logger; |
13
|
|
|
|
14
|
|
|
use Hautelook\AliceBundle\NotCallableTrait; |
15
|
|
|
use Psr\Log\LoggerInterface; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @author Théo FIDRY <[email protected]> |
19
|
|
|
*/ |
20
|
|
|
class FakeLogger implements LoggerInterface |
21
|
|
|
{ |
22
|
|
|
use NotCallableTrait; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @inheritdoc |
26
|
|
|
*/ |
27
|
|
|
public function emergency($message, array $context = array()) |
28
|
|
|
{ |
29
|
|
|
$this->__call(__METHOD__, func_get_args()); |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @inheritdoc |
34
|
|
|
*/ |
35
|
|
|
public function alert($message, array $context = array()) |
36
|
|
|
{ |
37
|
|
|
$this->__call(__METHOD__, func_get_args()); |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @inheritdoc |
42
|
|
|
*/ |
43
|
|
|
public function critical($message, array $context = array()) |
44
|
|
|
{ |
45
|
|
|
$this->__call(__METHOD__, func_get_args()); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @inheritdoc |
50
|
|
|
*/ |
51
|
|
|
public function error($message, array $context = array()) |
52
|
|
|
{ |
53
|
|
|
$this->__call(__METHOD__, func_get_args()); |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @inheritdoc |
58
|
|
|
*/ |
59
|
|
|
public function warning($message, array $context = array()) |
60
|
|
|
{ |
61
|
|
|
$this->__call(__METHOD__, func_get_args()); |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @inheritdoc |
66
|
|
|
*/ |
67
|
|
|
public function notice($message, array $context = array()) |
68
|
|
|
{ |
69
|
|
|
$this->__call(__METHOD__, func_get_args()); |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @inheritdoc |
74
|
|
|
*/ |
75
|
|
|
public function info($message, array $context = array()) |
76
|
|
|
{ |
77
|
|
|
$this->__call(__METHOD__, func_get_args()); |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @inheritdoc |
82
|
|
|
*/ |
83
|
|
|
public function debug($message, array $context = array()) |
84
|
|
|
{ |
85
|
|
|
$this->__call(__METHOD__, func_get_args()); |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @inheritdoc |
90
|
|
|
*/ |
91
|
|
|
public function log($level, $message, array $context = array()) |
92
|
|
|
{ |
93
|
|
|
$this->__call(__METHOD__, func_get_args()); |
94
|
|
|
} |
95
|
|
|
} |
96
|
|
|
|