ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ( $directory, $level=4) | |
Constructor. More... | |
setDirectory ( $directory) | |
Set log directory. More... | |
getDirectory () | |
Get log directory. More... | |
setLevel ( $level) | |
Set log level. More... | |
getLevel () | |
Get log level. More... | |
debug ( $data) | |
Log debug data. More... | |
info ( $data) | |
Log info data. More... | |
warn ( $data) | |
Log warn data. More... | |
error ( $data) | |
Log error data. More... | |
fatal ( $data) | |
Log fatal data. More... | |
getFile () | |
Get absolute path to current daily log file. More... | |
Protected Member Functions | |
log ( $data, $level) | |
Log data to file. More... | |
write ( $data) | |
Persist data to log. More... | |
Protected Attributes | |
$levels | |
$directory | |
Definition at line 45 of file Logger.php.
Slim_Logger::__construct | ( | $directory, | |
$level = 4 |
|||
) |
Constructor.
string | $directory | Absolute or relative path to log directory |
int | $level | The maximum log level reported by this Logger |
Definition at line 68 of file Logger.php.
References $directory, setDirectory(), and setLevel().
Slim_Logger::debug | ( | $data | ) |
Log debug data.
mixed | $data |
Definition at line 123 of file Logger.php.
Slim_Logger::error | ( | $data | ) |
Log error data.
mixed | $data |
Definition at line 150 of file Logger.php.
Slim_Logger::fatal | ( | $data | ) |
Log fatal data.
mixed | $data |
Definition at line 159 of file Logger.php.
Slim_Logger::getDirectory | ( | ) |
Get log directory.
Definition at line 91 of file Logger.php.
References $directory.
Referenced by getFile(), and log().
Slim_Logger::getFile | ( | ) |
Get absolute path to current daily log file.
Definition at line 167 of file Logger.php.
References getDirectory().
Referenced by write().
Slim_Logger::getLevel | ( | ) |
Get log level.
Definition at line 114 of file Logger.php.
Referenced by log().
Slim_Logger::info | ( | $data | ) |
Log info data.
mixed | $data |
Definition at line 132 of file Logger.php.
|
protected |
Log data to file.
mixed | $data | |
int | $level |
RuntimeException | If log directory not found or not writable |
Definition at line 178 of file Logger.php.
References $data, date, getDirectory(), getLevel(), levels, and write().
Referenced by debug(), error(), fatal(), info(), and warn().
Slim_Logger::setDirectory | ( | $directory | ) |
Set log directory.
string | $directory | Absolute or relative path to log directory |
Definition at line 78 of file Logger.php.
References $directory.
Referenced by __construct().
Slim_Logger::setLevel | ( | $level | ) |
Set log level.
int | The maximum log level reported by this Logger |
InvalidArgumentException | If level specified is not 0, 1, 2, 3, 4 |
Definition at line 101 of file Logger.php.
Referenced by __construct().
Slim_Logger::warn | ( | $data | ) |
Log warn data.
mixed | $data |
Definition at line 141 of file Logger.php.
|
protected |
Persist data to log.
string | Log message |
Definition at line 196 of file Logger.php.
References $data, and getFile().
Referenced by log().
|
protected |
Definition at line 61 of file Logger.php.
Referenced by __construct(), getDirectory(), and setDirectory().
|
protected |
Definition at line 50 of file Logger.php.