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

CLILogger::log()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 3
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