4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Log;
15 * DebugLoggerInterface.
17 * @author Fabien Potencier <fabien@symfony.com>
19 * @method clear() Removes all log records.
21 interface DebugLoggerInterface
24 * Returns an array of logs.
26 * A log is an array with the following mandatory keys:
27 * timestamp, message, priority, and priorityName.
28 * It can also have an optional context key containing an array.
30 * @return array An array of logs
32 public function getLogs();
35 * Returns the number of errors.
37 * @return int The number of errors
39 public function countErrors();