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'
Details ALERT = '1'
Details CRIT = '2'
Details ERR = '3'
Details WARN = '4'
Details NOTICE = '5'
Details INFO = '6'
Details DEBUG = '7'
Detailsstring $_defaultFilterNamespace = 'Zend_Log_Filter'
Detailsstring $_defaultWriterNamespace = 'Zend_Log_Writer'
Detailsarray $_extras = 'array'
Detailsarray $_filters = 'array'
Detailsarray $_priorities = 'array'
Detailsarray $_writers = 'array'
Details__call(
string $method, string $params
)
:
voidUndefined method handler allows a shortcut: $log->priorityName('message') instead of $log->log('message', Zend_Log::PRIORITY_NAME)
Details__construct(
Zend_Log_Writer_Abstract|null $writer
=
null
)
:
Class constructor. Create a new logger
Details__destruct(
)
:
voidClass destructor. Shutdown log writers
Details_constructFilterFromConfig(
array|Zend_Config $config
)
:
Zend_Log_Filter_InterfaceConstruct filter object from configuration array or Zend_Config object
Details_constructFromConfig(
string $type, mixed $config, string $namespace
)
:
objectConstruct a filter or writer from config
Details_constructWriterFromConfig(
$config
)
:
Zend_Log_Writer_AbstractConstruct a writer object based on a configuration array
DetailsaddFilter(
int|Zend_Log_Filter_Interface $filter
)
:
voidAdd 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.
DetailsaddPriority(
string $name, integer $priority
)
:
Add a custom priority
DetailsaddWriter(
mixed $writer
)
:
voidAdd a writer. A writer is responsible for taking a log message and writing it out to storage.
Detailsfactory(
array|Zend_Config $config
=
array
)
:
Zend_LogFactory to construct the logger and one or more writers based on the configuration array
DetailsgetClassName(
array $config, string $type, string $defaultNamespace
)
:
stringGet the writer or filter full classname
Detailslog(
string $message, integer $priority, mixed $extras
=
null
)
:
voidLog a message at a priority
DetailssetEventItem(
$name $name, $value $value
)
:
voidSet an extra item to pass to the log writers.
Details