API Documentation

Zend/Log/Formatter/Simple.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Log  
Subpackage
Formatter  
Version
$Id: Simple.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Log_Formatter_Simple

Package: Zend\Log\Formatter

Parent(s)
\Zend_Log_Formatter_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id: Simple.php 24594 2012-01-05 21:27:01Z matthew $  

Constants

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

Properties

Propertyprotectedstring  $_format= ''

Details
Type
string

Methods

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

Class constructor

Parameters
Name Type Description
$format null|string

Format specifier for log messages

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

Factory for Zend_Log_Formatter_Simple classe

Parameters
Name Type Description
$options array|\Zend_Config
Returns
Type Description
\Zend_Log_Formatter_Simple
methodpublicformat( array $event ) : string

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

Parameters
Name Type Description
$event array

event data

Returns
Type Description
string formatted line to write to the log
Documentation was generated by DocBlox 0.15.1.