Zend\Log\Formatter\Base
Synopsis
class Base
implements
FormatterInterface
{
- // members
- protected string $dateTimeFormat;
- // methods
- public void __construct()
- public array format()
- protected mixed normalize()
- public void getDateTimeFormat()
- public void setDateTimeFormat()
Hierarchy
Extended by
Implements
Constants
Name | Value |
---|---|
DEFAULT_DATETIME_FORMAT | 'c' |
Members
protected
- $dateTimeFormat
—
string
Format specifier for DateTime objects in event data (default: ISO 8601)
Methods
protected
- normalize() — Normalize all non-scalar data types (except null) in a string value
public
- __construct() — Class constructor
- format() — Formats data to be written by the writer.
- getDateTimeFormat() — {@inheritDoc}
- setDateTimeFormat() — {@inheritDoc}