category Zend
package Zend_Log
subpackage Formatter

 Methods

Class constructor

__construct(null | string $format, null | string $dateTimeFormat) 
Inherited

see \Zend\Log\Formatter\http://php.net/manual/en/function.date.php
inherited_from \Zend\Log\Formatter\Simple::__construct()

Parameters

$format

nullstring

Format specifier for log messages

$dateTimeFormat

nullstring

Format specifier for DateTime objects in event data

Exceptions

\Zend\Log\Exception\InvalidArgumentException

This method formats the event for the PHP Error Handler.

format(array $event) : string

Parameters

$event

array

Returns

string

Get the format specifier for DateTime objects

getDateTimeFormat() : string
Inherited

inherited_from \Zend\Log\Formatter\Base::getDateTimeFormat()
inherited_from \Zend\Log\Formatter\Simple::getDateTimeFormat()

Returns

string

Set the format specifier for DateTime objects

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

inherited_from \Zend\Log\Formatter\Base::setDateTimeFormat()
inherited_from \Zend\Log\Formatter\Simple::setDateTimeFormat()

Parameters

$dateTimeFormat

string

DateTime format

Returns

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

buildReplacementsFromArray(array $event, string $key) : 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

inherited_from \Zend\Log\Formatter\Base::normalize()
inherited_from \Zend\Log\Formatter\Simple::normalize()

Parameters

$value

mixed

Returns

mixed

 Properties

 

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

$dateTimeFormat : string
Inherited

see \Zend\Log\Formatter\http://php.net/manual/en/function.date.php
inherited_from \Zend\Log\Formatter\Base::$$dateTimeFormat
inherited_from \Zend\Log\Formatter\Simple::$$dateTimeFormat
 

Format specifier for log messages

$format : string
Inherited

inherited_from \Zend\Log\Formatter\Simple::$$format

 Constants

 

Default format specifier for DateTime objects is ISO 8601

DEFAULT_DATETIME_FORMAT 
Inherited

see \Zend\Log\Formatter\http://php.net/manual/en/function.date.php
inherited_from \Zend\Log\Formatter\FormatterInterface::DEFAULT_DATETIME_FORMAT
inherited_from \Zend\Log\Formatter\Base::DEFAULT_DATETIME_FORMAT
inherited_from \Zend\Log\Formatter\Simple::DEFAULT_DATETIME_FORMAT
 

DEFAULT_FORMAT

DEFAULT_FORMAT