package Default

 Methods

Class constructor

__construct(null|string|array|\Traversable $dateTimeFormat = null
see

Parameters

$dateTimeFormat

nullstringarray\Traversable

Format for DateTime objects

Formats data to be written by the writer.

format(array $event) : array
inherited_from \Zend\Log\Formatter\FormatterInterface::format()

Parameters

$event

array

event data

Returns

array

Get the format specifier for DateTime objects

getDateTimeFormat() 
inherited_from \Zend\Log\Formatter\FormatterInterface::getDateTimeFormat()

Set the format specifier for DateTime objects

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

Parameters

$dateTimeFormat

Normalize all non-scalar data types (except null) in a string value

normalize(mixed $value) : mixed

Parameters

$value

mixed

Returns

mixed

 Properties

 

Format specifier for DateTime objects in event data (default: ISO 8601)

$dateTimeFormat : string

Default

self::DEFAULT_DATETIME_FORMAT
see