ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Component logger with individual log levels by component id. More...
Public Member Functions | |
__construct (Logger $logger) | |
isHandling ($a_level) | |
Check whether current logger is handling a log level. More... | |
log ($a_message, $a_level=ilLogLevel::INFO) | |
dump ($a_variable, $a_level=ilLogLevel::INFO) | |
debug ($a_message, $a_context=array()) | |
info ($a_message) | |
notice ($a_message) | |
warning ($a_message) | |
error ($a_message) | |
critical ($a_message) | |
alert ($a_message) | |
emergency ($a_message) | |
getLogger () | |
Get logger instance. More... | |
write ($a_message, $a_level=ilLogLevel::INFO) | |
write log message More... | |
writeLanguageLog ($a_topic, $a_lang_key) | |
Write language log. More... | |
logStack ($a_level=null, $a_message='') | |
log stack trace More... | |
writeMemoryPeakUsage ($a_level) | |
Write memory peak usage Automatically called at end of script. More... | |
Private Attributes | |
$logger = null | |
Component logger with individual log levels by component id.
Definition at line 19 of file class.ilLogger.php.
ilLogger::__construct | ( | Logger | $logger | ) |
Definition at line 23 of file class.ilLogger.php.
References $logger.
ilLogger::alert | ( | $a_message | ) |
Definition at line 78 of file class.ilLogger.php.
References getLogger().
ilLogger::critical | ( | $a_message | ) |
Definition at line 73 of file class.ilLogger.php.
References getLogger().
ilLogger::debug | ( | $a_message, | |
$a_context = array() |
|||
) |
Definition at line 48 of file class.ilLogger.php.
References getLogger().
Referenced by ilForumAppEventListener\delegateNotification(), and ilForumAppEventListener\sendNotification().
ilLogger::dump | ( | $a_variable, | |
$a_level = ilLogLevel::INFO |
|||
) |
Definition at line 43 of file class.ilLogger.php.
References log().
ilLogger::emergency | ( | $a_message | ) |
Definition at line 84 of file class.ilLogger.php.
References getLogger().
ilLogger::error | ( | $a_message | ) |
Definition at line 68 of file class.ilLogger.php.
References getLogger().
Referenced by ilRandom\int().
ilLogger::getLogger | ( | ) |
Get logger instance.
Definition at line 93 of file class.ilLogger.php.
References $logger.
Referenced by alert(), critical(), debug(), emergency(), error(), info(), isHandling(), log(), logStack(), notice(), warning(), write(), writeLanguageLog(), and writeMemoryPeakUsage().
ilLogger::info | ( | $a_message | ) |
Definition at line 53 of file class.ilLogger.php.
References getLogger().
ilLogger::isHandling | ( | $a_level | ) |
Check whether current logger is handling a log level.
int | $a_level |
Definition at line 33 of file class.ilLogger.php.
References getLogger().
ilLogger::log | ( | $a_message, | |
$a_level = ilLogLevel::INFO |
|||
) |
Definition at line 38 of file class.ilLogger.php.
References getLogger().
Referenced by dump().
ilLogger::logStack | ( | $a_level = null , |
|
$a_message = '' |
|||
) |
log stack trace
type | $a_level | |
type | $a_message |
Definition at line 128 of file class.ilLogger.php.
References ilLogLevel\getLevels(), getLogger(), and ilLogLevel\INFO.
Referenced by ilRandom\int().
ilLogger::notice | ( | $a_message | ) |
Definition at line 58 of file class.ilLogger.php.
References getLogger().
ilLogger::warning | ( | $a_message | ) |
Definition at line 63 of file class.ilLogger.php.
References getLogger().
ilLogger::write | ( | $a_message, | |
$a_level = ilLogLevel::INFO |
|||
) |
write log message
Definition at line 103 of file class.ilLogger.php.
References ilLogLevel\getLevels(), getLogger(), and ilLogLevel\INFO.
ilLogger::writeLanguageLog | ( | $a_topic, | |
$a_lang_key | |||
) |
Write language log.
Definition at line 117 of file class.ilLogger.php.
References getLogger().
ilLogger::writeMemoryPeakUsage | ( | $a_level | ) |
Write memory peak usage Automatically called at end of script.
int | $a_level |
Definition at line 152 of file class.ilLogger.php.
References getLogger().
|
private |
Definition at line 21 of file class.ilLogger.php.
Referenced by __construct(), and getLogger().