class ConsoleFormatter implements FormatterInterface

Formats incoming records for console output by coloring them depending on log level.

Constants

SIMPLE_FORMAT

SIMPLE_DATE

Methods

__construct(array $options = [])

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.

formatBatch(array $records)

{@inheritdoc}

format(array $record)

{@inheritdoc}

echoLine($line, $depth, $indentPad)

No description

castObject($v, array $a, Stub $s, $isNested)

No description

Details

at line 56
__construct(array $options = [])

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.

Parameters

array $options

at line 87
formatBatch(array $records)

{@inheritdoc}

Parameters

array $records

at line 99
format(array $record)

{@inheritdoc}

Parameters

array $record

at line 134
echoLine($line, $depth, $indentPad)

Parameters

$line
$depth
$indentPad

at line 144
castObject($v, array $a, Stub $s, $isNested)

Parameters

$v
array $a
Stub $s
$isNested