Completed
Push — master ( 9b3fe3...b82616 )
by Hong
06:10 queued 03:55
created

EchoHandler::write()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * Phoole (PHP7.2+)
5
 *
6
 * @category  Library
7
 * @package   Phoole\Logger
8
 * @copyright Copyright (c) 2019 Hong Zhang
9
 */
10
declare(strict_types=1);
11
12
namespace Phoole\Logger\Handler;
13
14
use Phoole\Logger\Entry\LogEntryInterface;
15
16
/**
17
 * echo log message to STDOUT
18
 *
19
 * @package Phoole\Logger
20
 */
21
class EchoHandler extends HandlerAbstract
22
{
23
    /**
24
     * {@inheritDoc}
25
     */
26
    protected function write(LogEntryInterface $entry)
27
    {
28
        echo $this->getFormatter()->format($entry);
29
    }
30
}
31