Completed
Push — master ( a94ac3...322d21 )
by Richard
05:34
created

CLILogger   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A log() 0 3 1
1
<?php
2
/******************************************************************************
3
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
4
 * 
5
 * Copyright (c) 2016 Richard Klees <[email protected]>
6
 *
7
 * This software is licensed under The MIT License. You should have received 
8
 * a copy of the licence along with the code.
9
 */
10
11
namespace Lechimp\Dicto\App;
12
13
use Psr\Log\AbstractLogger;
14
use Psr\Log\LogLevel;
15
16
class CLILogger extends AbstractLogger {
17
    public function log($level, $message, array $context = array()) {
18
        echo strtoupper($level).": ".$message."\n";
19
    }
20
}
21