Class cLog
This class contains the main functionalities for the logging in CONTENIDO.
Examples:
$writer = cLogWriter::factory("File", array('destination' => 'contenido.log')); $log = new cLog($writer);
$log->addPriority("CONTENIDO", 10); $log->log("Contenido Log Message.", "CONTENIDO"); $log->contenido("Same log entry in short notation."); $log->removePriority("CONTENIDO");
$log->emerg("System down.");
$log->log('Notice Log Message', cLog::NOTICE);
$log->buffer('Buffered Log Message', cLog::WARN); $log->commit();
Direct known subclasses
cModuleLog
Package: Core\Log
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/log/class.log.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/log/class.log.php
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
removePriority( string $name )
Removes a priority from log. Default properties can not be removed. |
public
|
|
public
string
|
|
public
string
|
|
public
string
|
integer |
EMERG
|
#
0
|
integer |
ALERT
|
#
1
|
integer |
CRIT
|
#
2
|
integer |
ERR
|
#
3
|
integer |
WARN
|
#
4
|
integer |
NOTICE
|
#
5
|
integer |
INFO
|
#
6
|
integer |
DEBUG
|
#
7
|
protected
|
$_writer
Contains the local log writer instance. |
|
protected
array
|
$_shortcutHandlers
Contains all shortcut handlers |
#
array()
|
protected
array
|
$_priorities
Contains all available priorities |
#
array()
|
protected
array
|
$_defaultPriorities
Contains all default priorities |
#
array()
|
protected
array
|
$_buffer
Contains all buffered messages |
#
array()
|