package Default

 Methods

Formats data into a single line to be written by the writer.

format(array $event) : string

Parameters

$event

array

event data

Returns

stringformatted line to write to the log

Get the format specifier for DateTime objects

getDateTimeFormat() : string

Returns

string

Set the format specifier for DateTime objects

setDateTimeFormat(string $dateTimeFormat) : \Zend\Log\Formatter\FormatterInterface
see

Parameters

$dateTimeFormat

string

DateTime format

Returns

\Zend\Log\Formatter\FormatterInterface

 Constants

 

Default format specifier for DateTime objects is ISO 8601

DEFAULT_DATETIME_FORMAT = 'c' 
see