ConsoleLog::__log()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 3
crap 2
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
class ConsoleLog extends LogOutputAbstract{
16
17
	/**
18
	 * @inheritdoc
19
	 */
20
	protected function __log(string $level, string $message, array $context = null){
21
		echo $this->message($level, $message, $context);
22
	}
23
24
	/**
25
	 * @inheritdoc
26
	 */
27
	public function close():LogOutputInterface{
28
		echo  $this->message('log closed', '~~~');
29
30
		return $this;
31
	}
32
33
}
34