package Default
inherited_from \Zend\Log\Formatter\Simple

 Methods

Class constructor

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

Parameters

$dateTimeFormat

nullstringarray\Traversable

Format for DateTime objects

This method formats the event for the PHP Error Handler.

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

Parameters

$event

array

Returns

string

Formats data to be written by the writer.

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

Parameters

$event

array

event data

Returns

array

Get the format specifier for DateTime objects

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

Set the format specifier for DateTime objects

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

Parameters

$dateTimeFormat

Flatten the multi-dimensional $event array into a single dimensional array

buildReplacementsFromArray(array $event, string $key = null) : array

Parameters

$event

array

$key

string

Returns

array

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

normalize(mixed $value) : mixed
Inherited

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
 

Format specifier for log messages

$format : string

Default

 Constants

 

DEFAULT_FORMAT

DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%) %message% (errno %extra[errno]%) in %extra[file]% on line %extra[line]%' 
inherited_from \Zend\Log\Formatter\Simple::DEFAULT_FORMAT
 

DEFAULT_FORMAT

DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message% %extra%'