3 * @copyright Copyright (C) 2010-2021, the Friendica project
5 * @license GNU AGPL version 3 or any later version
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 namespace Friendica\Util\Logger;
24 use Psr\Log\LoggerInterface;
27 * A Logger instance to not log
29 class VoidLogger implements LoggerInterface
34 * @param string $message
35 * @param array $context
39 public function emergency($message, array $context = array())
45 * Action must be taken immediately.
47 * Example: Entire website down, database unavailable, etc. This should
48 * trigger the SMS alerts and wake you up.
50 * @param string $message
51 * @param array $context
55 public function alert($message, array $context = array())
61 * Critical conditions.
63 * Example: Application component unavailable, unexpected exception.
65 * @param string $message
66 * @param array $context
70 public function critical($message, array $context = array())
76 * Runtime errors that do not require immediate action but should typically
77 * be logged and monitored.
79 * @param string $message
80 * @param array $context
84 public function error($message, array $context = array())
90 * Exceptional occurrences that are not errors.
92 * Example: Use of deprecated APIs, poor use of an API, undesirable things
93 * that are not necessarily wrong.
95 * @param string $message
96 * @param array $context
100 public function warning($message, array $context = array())
106 * Normal but significant events.
108 * @param string $message
109 * @param array $context
113 public function notice($message, array $context = array())
119 * Interesting events.
121 * Example: User logs in, SQL logs.
123 * @param string $message
124 * @param array $context
128 public function info($message, array $context = array())
134 * Detailed debug information.
136 * @param string $message
137 * @param array $context
141 public function debug($message, array $context = array())
147 * Logs with an arbitrary level.
149 * @param mixed $level
150 * @param string $message
151 * @param array $context
155 public function log($level, $message, array $context = array())