Passed
Push — master ( 35232d...8d0b59 )
by Melech
06:16 queued 02:04
created

NullLogger::exception()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Valkyrja\Log;
15
16
use Throwable;
17
use Valkyrja\Log\Contract\Logger as Contract;
18
use Valkyrja\Log\Enum\LogLevel;
19
20
/**
21
 * Class NullLogger.
22
 *
23
 * @author Melech Mizrachi
24
 */
25
class NullLogger implements Contract
26
{
27
    /**
28
     * @inheritDoc
29
     */
30
    public function debug(string $message, array $context = []): void
31
    {
32
    }
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function info(string $message, array $context = []): void
38
    {
39
    }
40
41
    /**
42
     * @inheritDoc
43
     */
44
    public function notice(string $message, array $context = []): void
45
    {
46
    }
47
48
    /**
49
     * @inheritDoc
50
     */
51
    public function warning(string $message, array $context = []): void
52
    {
53
    }
54
55
    /**
56
     * @inheritDoc
57
     */
58
    public function error(string $message, array $context = []): void
59
    {
60
    }
61
62
    /**
63
     * @inheritDoc
64
     */
65
    public function critical(string $message, array $context = []): void
66
    {
67
    }
68
69
    /**
70
     * @inheritDoc
71
     */
72
    public function alert(string $message, array $context = []): void
73
    {
74
    }
75
76
    /**
77
     * @inheritDoc
78
     */
79
    public function emergency(string $message, array $context = []): void
80
    {
81
    }
82
83
    /**
84
     * @inheritDoc
85
     */
86
    public function log(LogLevel $level, string $message, array $context = []): void
87
    {
88
    }
89
90
    /**
91
     * @inheritDoc
92
     */
93
    public function exception(Throwable $exception, string $message, array $context = []): void
94
    {
95
    }
96
}
97