NaiveStdoutLogger::debug()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Cmp\Queues\Infrastructure\Logger;
4
5
class NaiveStdoutLogger implements \Psr\Log\LoggerInterface
6
{
7
8
    public function emergency($message, array $context = [])
9
    {
10
        echo '<emergency>:' . $message . PHP_EOL;
11
    }
12
13
    public function alert($message, array $context = [])
14
    {
15
        echo '<alert>:' . $message . PHP_EOL;
16
    }
17
18
    public function critical($message, array $context = [])
19
    {
20
        echo '<critical>:' . $message . PHP_EOL;
21
    }
22
23
    public function error($message, array $context = [])
24
    {
25
        echo '<error>:' . $message . PHP_EOL;
26
    }
27
28
    public function warning($message, array $context = [])
29
    {
30
        echo '<warning>:' . $message . PHP_EOL;
31
    }
32
33
    public function notice($message, array $context = [])
34
    {
35
        echo '<notice>:' . $message . PHP_EOL;
36
    }
37
38
    public function info($message, array $context = [])
39
    {
40
        echo '<info>:' . $message . PHP_EOL;
41
    }
42
43
    public function debug($message, array $context = [])
44
    {
45
        echo '<debug>:' . $message . PHP_EOL;
46
    }
47
48
    public function log($level, $message, array $context = [])
49
    {
50
        echo '<log>:' . $message . PHP_EOL;
51
    }
52
}