ConsoleFormatter
class ConsoleFormatter implements FormatterInterface
Formats incoming records for console output by coloring them depending on log level.
Constants
SIMPLE_FORMAT |
|
SIMPLE_DATE |
|
Methods
Available options: * format: The format of the outputted log string. The following placeholders are supported: %datetime%, %start_tag%, %level_name%, %end_tag%, %channel%, %message%, %context%, %extra%; * date_format: 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.
{@inheritdoc}
{@inheritdoc}
No description
Details
__construct(array $options = array())
Available options: * format: The format of the outputted log string. The following placeholders are supported: %datetime%, %start_tag%, %level_name%, %end_tag%, %channel%, %message%, %context%, %extra%; * date_format: 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.