Completed
Push — master ( 22d0de...5ae499 )
by smiley
01:45
created

ConsoleLog   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 16
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A close() 0 4 1
A __log() 0 2 1
1
<?php
2
/**
3
 * Class ConsoleLog
4
 *
5
 * @filesource   ConsoleLog.php
6
 * @created      04.01.2018
7
 * @package      chillerlan\Logger\Output
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2018 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\Logger\Output;
14
15
/**
16
 */
17
class ConsoleLog extends LogOutputAbstract{
18
19
	/**
20
	 * @inheritdoc
21
	 */
22
	protected function __log(string $level, string $message, array $context = null){
23
		echo $this->message($level, $message, $context);
24
	}
25
26
	/**
27
	 * @inheritdoc
28
	 */
29
	public function close():LogOutputInterface{
30
		echo  $this->message('log closed', '~~~');
31
32
		return $this;
33
	}
34
35
}
36