NaiveStdoutLogger   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 48
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A emergency() 0 4 1
A alert() 0 4 1
A critical() 0 4 1
A error() 0 4 1
A warning() 0 4 1
A notice() 0 4 1
A info() 0 4 1
A debug() 0 4 1
A log() 0 4 1
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
}