category Zend
package Zend_Log
subpackage Formatter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
version $Id$
inherited_from \Zend_Log_Formatter_Abstract

 Methods

Class constructor

__construct(null|string $format = null) : void

Parameters

$format

nullstring

Format specifier for log messages

Exceptions

\Zend_Log_Exception

Factory for Zend_Log_Formatter_Simple classe

factory(array|\Zend_Config $options) : \Zend_Log_Formatter_Simple
Static

Parameters

$options

array\Zend_Config

Returns

\Zend_Log_Formatter_Simple

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

format(array $event) : string

Parameters

$event

array

event data

Returns

stringformatted line to write to the log

 Properties

 

$_format

$_format : string

Default

 Constants

 

DEFAULT_FORMAT

DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message%'