Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/*
4
 * This file is part of the Symfony package.
5
 *
6
 * (c) Fabien Potencier <fabien@symfony.com>
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 Symfony\Component\HttpKernel\Log;
13
 
14
use Symfony\Component\HttpFoundation\Request;
15
 
16
/**
17
 * DebugLoggerInterface.
18
 *
19
 * @author Fabien Potencier <fabien@symfony.com>
20
 */
21
interface DebugLoggerInterface
22
{
23
    /**
24
     * Returns an array of logs.
25
     *
26
     * @return array<array{
27
     *     channel: ?string,
28
     *     context: array<string, mixed>,
29
     *     message: string,
30
     *     priority: int,
31
     *     priorityName: string,
32
     *     timestamp: int,
33
     *     timestamp_rfc3339: string,
34
     * }>
35
     */
36
    public function getLogs(Request $request = null);
37
 
38
    /**
39
     * Returns the number of errors.
40
     *
41
     * @return int
42
     */
43
    public function countErrors(Request $request = null);
44
 
45
    /**
46
     * Removes all log records.
47
     */
48
    public function clear();
49
}