1 | <?php |
||
36 | class TerminalHandler extends StreamHandler |
||
37 | { |
||
38 | /** |
||
39 | * Use ANSI color or not |
||
40 | * |
||
41 | * @var bool |
||
42 | * @access protected |
||
43 | */ |
||
44 | protected $color; |
||
45 | |||
46 | /** |
||
47 | * Constructor |
||
48 | * |
||
49 | * @param string $stream the stream |
||
50 | * @param bool $color use ANSI color formatter or not |
||
51 | * @param FormatterInterface $formatter |
||
52 | * @param bool $stopPropagation |
||
53 | * @access public |
||
54 | * @since 2.0.1 removed level param |
||
55 | */ |
||
56 | public function __construct( |
||
74 | |||
75 | /** |
||
76 | * Override default |
||
77 | * |
||
78 | * {@inheritDoc} |
||
79 | */ |
||
80 | protected function setFormatter(FormatterInterface $formatter = null) |
||
89 | |||
90 | /** |
||
91 | * Only if in CLI mode |
||
92 | * |
||
93 | * {@inheritDoc} |
||
94 | */ |
||
95 | protected function isHandling(LogEntryInterface $logEntry)/*# : bool */ |
||
99 | } |
||
100 |