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.
EMERG = '0'
ALERT = '1'
CRIT = '2'
ERR = '3'
WARN = '4'
NOTICE = '5'
INFO = '6'
DEBUG = '7'
string $_defaultFilterNamespace = 'Zend_Log_Filter'
string $_defaultWriterNamespace = 'Zend_Log_Writer'
array $_extras = 'array'
array $_filters = 'array'
array $_priorities = 'array'
array $_writers = 'array'
__call(
string $method, string $params
)
:
void
Undefined method handler allows a shortcut: $log->priorityName('message') instead of $log->log('message', Zend_Log::PRIORITY_NAME)
__construct(
Zend_Log_Writer_Abstract|null $writer
=
null
)
:
Class constructor. Create a new logger
__destruct(
)
:
void
Class destructor. Shutdown log writers
_constructFilterFromConfig(
array|Zend_Config $config
)
:
Zend_Log_Filter_Interface
Construct filter object from configuration array or Zend_Config object
_constructFromConfig(
string $type, mixed $config, string $namespace
)
:
object
Construct a filter or writer from config
_constructWriterFromConfig(
$config
)
:
Zend_Log_Writer_Abstract
Construct a writer object based on a configuration array
addFilter(
int|Zend_Log_Filter_Interface $filter
)
:
void
Add a filter that will be applied before all log writers.
Before a message will be received by any of the writers, it must be accepted by all filters added with this method.
addPriority(
string $name, integer $priority
)
:
Add a custom priority
addWriter(
mixed $writer
)
:
void
Add a writer. A writer is responsible for taking a log message and writing it out to storage.
factory(
array|Zend_Config $config
=
array
)
:
Zend_Log
Factory to construct the logger and one or more writers based on the configuration array
getClassName(
array $config, string $type, string $defaultNamespace
)
:
string
Get the writer or filter full classname
log(
string $message, integer $priority, mixed $extras
=
null
)
:
void
Log a message at a priority
setEventItem(
$name $name, $value $value
)
:
void
Set an extra item to pass to the log writers.