Log/Formatter/Simple.php
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Log
- subpackage
- Formatter
- version
- $Id: Simple.php 20096 2010-01-06 02:05:09Z bkarwin $
- Classes
- Zend_Log_Formatter_Simple
Description
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.
Zend_Log_Formatter_Simple
- Implements
- Zend_Log_Formatter_Interface
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Log
- subpackage
- Formatter
- version
- $Id: Simple.php 20096 2010-01-06 02:05:09Z bkarwin $
- Constants
- DEFAULT_FORMAT
- Properties
- $_format
- Methods
- __construct
- format
Description
Constants
DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message%'
Details
- value
- %timestamp% %priorityName% (%priority%): %message%
Properties
string $_format = 'DEFAULT_FORMAT'
Details
- $_format
- string
- visibility
- protected
- default
- DEFAULT_FORMAT
- final
- false
- static
- false
Methods
__construct(
null|string $format
=
null
)
:
Class constructor
Arguments
- $format
- nullstring
Format specifier for log messages
Details
- visibility
- public
- final
- false
- static
- false
- throws
format(
array $event
)
:
string
Formats data into a single line to be written by the writer.
Arguments
- $event
- array
event data
Output
- string
- formatted line to write to the log
Details
- visibility
- public
- final
- false
- static
- false