3 namespace Friendica\Util\Logger;
5 use Psr\Log\LoggerInterface;
8 * A Logger instance to not log
10 class VoidLogger implements LoggerInterface
15 * @param string $message
16 * @param array $context
20 public function emergency($message, array $context = array())
26 * Action must be taken immediately.
28 * Example: Entire website down, database unavailable, etc. This should
29 * trigger the SMS alerts and wake you up.
31 * @param string $message
32 * @param array $context
36 public function alert($message, array $context = array())
42 * Critical conditions.
44 * Example: Application component unavailable, unexpected exception.
46 * @param string $message
47 * @param array $context
51 public function critical($message, array $context = array())
57 * Runtime errors that do not require immediate action but should typically
58 * be logged and monitored.
60 * @param string $message
61 * @param array $context
65 public function error($message, array $context = array())
71 * Exceptional occurrences that are not errors.
73 * Example: Use of deprecated APIs, poor use of an API, undesirable things
74 * that are not necessarily wrong.
76 * @param string $message
77 * @param array $context
81 public function warning($message, array $context = array())
87 * Normal but significant events.
89 * @param string $message
90 * @param array $context
94 public function notice($message, array $context = array())
100 * Interesting events.
102 * Example: User logs in, SQL logs.
104 * @param string $message
105 * @param array $context
109 public function info($message, array $context = array())
115 * Detailed debug information.
117 * @param string $message
118 * @param array $context
122 public function debug($message, array $context = array())
128 * Logs with an arbitrary level.
130 * @param mixed $level
131 * @param string $message
132 * @param array $context
136 public function log($level, $message, array $context = array())