ConsoleFormatter
class ConsoleFormatter implements FormatterInterface
Formats incoming records for console output by coloring them depending on log level.
Constants
| SIMPLE_FORMAT | |
| SIMPLE_DATE |
Methods
| __construct($options = array()) Available options: * format: The format of the outputted log string. The following placeholders are supported: %datetime%, %starttag%, %levelname%, %endtag%, %channel%, %message%, %context%, %extra%; * dateformat: The format of the outputted date string; * colors: If true, the log string contains ANSI code to add color; * multiline: If false, "context" and "extra" are dumped on one line. | ||
| formatBatch(array $records) {@inheritdoc} | ||
| format(array $record) {@inheritdoc} | ||
| echoLine($line, $depth, $indentPad) | ||
| castObject($v, array $a, Stub $s, $isNested) |
Details
__construct($options = array())
Available options: * format: The format of the outputted log string. The following placeholders are supported: %datetime%, %starttag%, %levelname%, %endtag%, %channel%, %message%, %context%, %extra%; * dateformat: The format of the outputted date string; * colors: If true, the log string contains ANSI code to add color; * multiline: If false, "context" and "extra" are dumped on one line.
Parameters
| $options |
formatBatch(array $records)
{@inheritdoc}
Parameters
| array | $records |
format(array $record)
{@inheritdoc}
Parameters
| array | $record |
echoLine($line, $depth, $indentPad)
Parameters
| $line | ||
| $depth | ||
| $indentPad |
castObject($v, array $a, Stub $s, $isNested)
Parameters
| $v | ||
| array | $a | |
| Stub | $s | |
| $isNested |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.html