category Zend
package Zend_Log
subpackage Formatter

 Methods

Class constructor

__construct(null | string $dateTimeFormat) 

see \Zend\Log\Formatter\http://php.net/manual/en/function.date.php

Parameters

$dateTimeFormat

nullstring

Format specifier for DateTime objects in event data

Formats data to be written by the writer.

format(array $event) : array

Parameters

$event

array

event data

Returns

array

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

Parameters

$dateTimeFormat

string

DateTime format

Returns

 Properties

 

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

$dateTimeFormat : string

see \Zend\Log\Formatter\http://php.net/manual/en/function.date.php

 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