Zend\Log\Formatter\Simple
Synopsis
class Simple
extends Base
{
- // constants
- const DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message% %extra%';
- // members
- protected string $format;
- // Inherited members from Base
- protected string $dateTimeFormat;
- // methods
- public void __construct()
- public string format()
- // Inherited methods from Base
- public void __construct()
- public array format()
- protected mixed normalize()
- public void getDateTimeFormat()
- public void setDateTimeFormat()
Hierarchy
Constants
Name | Value |
---|---|
DEFAULT_FORMAT | '%timestamp% %priorityName% (%priority%): %message% %extra%' |
DEFAULT_DATETIME_FORMAT | 'c' |
Members
protected
- $dateTimeFormat
—
string
Format specifier for DateTime objects in event data (default: ISO 8601) - $format
—
string
Format specifier for log messages
Methods
public
- __construct() — Class constructor
- format() — Formats data into a single line to be written by the writer.
Inherited from Zend\Log\Formatter\Base
protected
- normalize() — Normalize all non-scalar data types (except null) in a string value
public
- format() — Formats data to be written by the writer.
- getDateTimeFormat() — {@inheritDoc}
- setDateTimeFormat() — {@inheritDoc}