Zend\Log\Formatter\ErrorHandler
Synopsis
class ErrorHandler
extends Simple
{
- // constants
- const DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%) %message% (errno %extra[errno]%) in %extra[file]% on line %extra[line]%';
- // Inherited constants from Simple
- const DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message% %extra%';
- // Inherited members from Simple
- protected string $format;
- // Inherited members from Base
- protected string $dateTimeFormat;
- // methods
- public string format()
- protected array buildReplacementsFromArray()
- // Inherited methods from Simple
- 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
Extends
Constants
Name | Value |
---|---|
DEFAULT_FORMAT | '%timestamp% %priorityName% (%priority%) %message% (errno %extra[errno]%) in %extra[file]% on line %extra[line]%' |
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
protected
- buildReplacementsFromArray() — Flatten the multi-dimensional $event array into a single dimensional array
public
- format() — This method formats the event for the PHP Error Handler.
Inherited from Zend\Log\Formatter\Simple
public
- 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}