Interface FormatterInterface

Summary

Fully Qualified Name: Zend\Log\Formatter\FormatterInterface

Description

Methods

Name Description Defined By
format() Formats data into a single line to be written by the writer. FormatterInterface
getDateTimeFormat() Get the format specifier for DateTime objects FormatterInterface
setDateTimeFormat() Set the format specifier for DateTime objects FormatterInterface

Method Details

format()

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

Parameter Name Type Description
$event array event

Returns: string|array Either a formatted line to write to the log, or the updated event information to provide to the writer.

getDateTimeFormat()

Get the format specifier for DateTime objects

Returns: string

setDateTimeFormat()

Set the format specifier for DateTime objects

Parameter Name Type Description
$dateTimeFormat string DateTime

Returns: \FormatterInterface

Top