Log/Formatter/Simple.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Log  
Subpackage
Formatter  
Version
$Id$  

\Zend_Log_Formatter_Simple

Package: Zend_Log\Formatter
Parent(s)
\Zend_Log_Formatter_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id$  

Constants

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

Properties

>VPropertyprotectedstring $_format
Details
Type
string

Methods

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

Class constructor

Parameters
NameTypeDescription
$formatnull | string

Format specifier for log messages

Throws
ExceptionDescription
\Zend_Log_Exception
methodpublicfactory(array | \Zend_Config $options) : \Zend_Log_Formatter_Simple
static

Factory for Zend_Log_Formatter_Simple classe

Parameters
NameTypeDescription
$optionsarray | \Zend_Config
Returns
TypeDescription
\Zend_Log_Formatter_Simple
methodpublicformat(array $event) : string

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

Parameters
NameTypeDescription
$eventarray

event data

Returns
TypeDescription
stringformatted line to write to the log
Documentation was generated by phpDocumentor 2.2.0 .