]> git.mxchange.org Git - friendica.git/blob - src/Util/Logger/VoidLogger.php
Move mod/rsd_xml to src/Module/ReallySimpleDiscovery
[friendica.git] / src / Util / Logger / VoidLogger.php
1 <?php
2
3 namespace Friendica\Util\Logger;
4
5 use Psr\Log\LoggerInterface;
6
7 /**
8  * A Logger instance to not log
9  */
10 class VoidLogger implements LoggerInterface
11 {
12         /**
13          * System is unusable.
14          *
15          * @param string $message
16          * @param array $context
17          *
18          * @return void
19          */
20         public function emergency($message, array $context = array())
21         {
22                 return;
23         }
24
25         /**
26          * Action must be taken immediately.
27          *
28          * Example: Entire website down, database unavailable, etc. This should
29          * trigger the SMS alerts and wake you up.
30          *
31          * @param string $message
32          * @param array $context
33          *
34          * @return void
35          */
36         public function alert($message, array $context = array())
37         {
38                 return;
39         }
40
41         /**
42          * Critical conditions.
43          *
44          * Example: Application component unavailable, unexpected exception.
45          *
46          * @param string $message
47          * @param array $context
48          *
49          * @return void
50          */
51         public function critical($message, array $context = array())
52         {
53                 return;
54         }
55
56         /**
57          * Runtime errors that do not require immediate action but should typically
58          * be logged and monitored.
59          *
60          * @param string $message
61          * @param array $context
62          *
63          * @return void
64          */
65         public function error($message, array $context = array())
66         {
67                 return;
68         }
69
70         /**
71          * Exceptional occurrences that are not errors.
72          *
73          * Example: Use of deprecated APIs, poor use of an API, undesirable things
74          * that are not necessarily wrong.
75          *
76          * @param string $message
77          * @param array $context
78          *
79          * @return void
80          */
81         public function warning($message, array $context = array())
82         {
83                 return;
84         }
85
86         /**
87          * Normal but significant events.
88          *
89          * @param string $message
90          * @param array $context
91          *
92          * @return void
93          */
94         public function notice($message, array $context = array())
95         {
96                 return;
97         }
98
99         /**
100          * Interesting events.
101          *
102          * Example: User logs in, SQL logs.
103          *
104          * @param string $message
105          * @param array $context
106          *
107          * @return void
108          */
109         public function info($message, array $context = array())
110         {
111                 return;
112         }
113
114         /**
115          * Detailed debug information.
116          *
117          * @param string $message
118          * @param array $context
119          *
120          * @return void
121          */
122         public function debug($message, array $context = array())
123         {
124                 return;
125         }
126
127         /**
128          * Logs with an arbitrary level.
129          *
130          * @param mixed $level
131          * @param string $message
132          * @param array $context
133          *
134          * @return void
135          */
136         public function log($level, $message, array $context = array())
137         {
138                 return;
139         }
140 }