| ILIAS
    release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
    | 
logging More...
 Inheritance diagram for ilLog:
 Inheritance diagram for ilLog: Collaboration diagram for ilLog:
 Collaboration diagram for ilLog:| Public Member Functions | |
| ilLog ($a_log_path, $a_log_file, $a_tag="", $a_enabled=true, $a_log_level=NULL) | |
| constructor  More... | |
| setLogLevel ($a_log_level) | |
| set global log level  More... | |
| checkLogLevel ($a_log_level) | |
| determine log level  More... | |
| setLogFormat ($a_format) | |
| getLogFormat () | |
| setPath ($a_str) | |
| setFilename ($a_str) | |
| setTag ($a_str) | |
| writeLanguageLog ($a_topic, $a_lang_key) | |
| special language checking routine  More... | |
| writeWarning ($a_message) | |
| special warning message  More... | |
| logError ($a_code, $a_msg) | |
| this function is automatically called by class.ilErrorHandler in case of an error To log manually please use $this::write @access public  More... | |
| write ($a_msg, $a_log_level=NULL) | |
| logStack ($a_message='') | |
| dump ($a_var, $a_log_level=NULL) | |
| Dump a variable to the log.  More... | |
| __destruct () | |
| delete () | |
| delete logfile  More... | |
| Data Fields | |
| $path | |
| $filename | |
| $tag | |
| $log_format | |
| $FATAL | |
| $WARNING | |
| $MESSAGE | |
| $fp = false | |
| Private Member Functions | |
| open () | |
| Open log file.  More... | |
logging
this class provides a logging feature to the application this class is easy to use. call the constructor with e.g. $log = new Log(); you can give a filename if you want, else the defaultfilename is used.
Definition at line 18 of file class.ilLog.php.
| ilLog::__destruct | ( | ) | 
Reimplemented in ilWACLog.
Definition at line 308 of file class.ilLog.php.
| ilLog::checkLogLevel | ( | $a_log_level | ) | 
determine log level
@access private
| integer | log level | 
Definition at line 116 of file class.ilLog.php.
Referenced by write().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLog::delete | ( | ) | 
delete logfile
Definition at line 318 of file class.ilLog.php.
| ilLog::dump | ( | $a_var, | |
| $a_log_level = NULL | |||
| ) | 
Dump a variable to the log.
return
Definition at line 285 of file class.ilLog.php.
References write().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLog::getLogFormat | ( | ) | 
Definition at line 134 of file class.ilLog.php.
References $log_format.
Referenced by write().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLog::ilLog | ( | $a_log_path, | |
| $a_log_file, | |||
| $a_tag = "", | |||
| $a_enabled = true, | |||
| $a_log_level = NULL | |||
| ) | 
constructor
set the filename
| string | 
| ilLogException | 
Definition at line 64 of file class.ilLog.php.
References $WARNING, ilLogLevel\CRITICAL, ILIAS_ABSOLUTE_PATH, ilLogLevel\INFO, open(), setLogFormat(), setLogLevel(), and ilLogLevel\WARNING.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLog::logError | ( | $a_code, | |
| $a_msg | |||
| ) | 
this function is automatically called by class.ilErrorHandler in case of an error To log manually please use $this::write @access public
| integer | error level code from PEAR_Error | 
| string | error message | 
Definition at line 203 of file class.ilLog.php.
References write().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLog::logStack | ( | $a_message = '' | ) | 
Definition at line 267 of file class.ilLog.php.
References write().
Referenced by write().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Open log file.
| ilLogException | 
Definition at line 294 of file class.ilLog.php.
Referenced by ilLog(), and write().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLog::setFilename | ( | $a_str | ) | 
Definition at line 151 of file class.ilLog.php.
| ilLog::setLogFormat | ( | $a_format | ) | 
Definition at line 129 of file class.ilLog.php.
Referenced by ilLog().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLog::setLogLevel | ( | $a_log_level | ) | 
set global log level
@access private
| integer | log level | 
Definition at line 94 of file class.ilLog.php.
References $FATAL, $MESSAGE, and $WARNING.
Referenced by ilLog().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLog::setPath | ( | $a_str | ) | 
Definition at line 139 of file class.ilLog.php.
| ilLog::setTag | ( | $a_str | ) | 
Definition at line 163 of file class.ilLog.php.
| ilLog::write | ( | $a_msg, | |
| $a_log_level = NULL | |||
| ) | 
logging this method logs anything you want. It appends a line to the given logfile. Datetime and client id is appended automatically You may set the log level in each call. Leave blank to use default log level
specified in ilias.ini: [log] level = "<level>" possible values are fatal,warning,message
@access public
| string | error message | 
| integer | log level (optional) | 
Reimplemented in ilWACLog.
Definition at line 242 of file class.ilLog.php.
References checkLogLevel(), getLogFormat(), logStack(), and open().
Referenced by dump(), logError(), logStack(), ilOrgUnitSimpleImportGUI\startImport(), ilOrgUnitSimpleUserImportGUI\startImport(), writeLanguageLog(), and writeWarning().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLog::writeLanguageLog | ( | $a_topic, | |
| $a_lang_key | |||
| ) | 
special language checking routine
only add a log entry to the logfile if there isn't a log entry for the topic
| string | @access public | 
Definition at line 177 of file class.ilLog.php.
References write().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLog::writeWarning | ( | $a_message | ) | 
special warning message
| string | @access public | 
Definition at line 190 of file class.ilLog.php.
References write().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLog::$FATAL | 
Definition at line 36 of file class.ilLog.php.
Referenced by setLogLevel().
| ilLog::$filename | 
Definition at line 27 of file class.ilLog.php.
| ilLog::$fp = false | 
Definition at line 52 of file class.ilLog.php.
| ilLog::$log_format | 
Definition at line 29 of file class.ilLog.php.
Referenced by getLogFormat().
| ilLog::$MESSAGE | 
Definition at line 50 of file class.ilLog.php.
Referenced by setLogLevel().
| ilLog::$path | 
Definition at line 26 of file class.ilLog.php.
| ilLog::$tag | 
Definition at line 28 of file class.ilLog.php.
| ilLog::$WARNING | 
Definition at line 43 of file class.ilLog.php.
Referenced by ilLog(), and setLogLevel().