ILIAS
release_4-3 Revision
|
Public Member Functions | |
__construct ($directory, $level=4) | |
Constructor. | |
setDirectory ($directory) | |
Set log directory. | |
getDirectory () | |
Get log directory. | |
setLevel ($level) | |
Set log level. | |
getLevel () | |
Get log level. | |
debug ($data) | |
Log debug data. | |
info ($data) | |
Log info data. | |
warn ($data) | |
Log warn data. | |
error ($data) | |
Log error data. | |
fatal ($data) | |
Log fatal data. | |
getFile () | |
Get absolute path to current daily log file. |
Protected Member Functions | |
log ($data, $level) | |
Log data to file. | |
write ($data) | |
Persist data to log. |
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 | ) |
Slim_Logger::error | ( | $data | ) |
Slim_Logger::fatal | ( | $data | ) |
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 | ) |
|
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, getDirectory(), getLevel(), 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 | ) |
|
protected |
|
protected |
Definition at line 61 of file Logger.php.
Referenced by __construct(), getDirectory(), and setDirectory().
|
protected |
Definition at line 50 of file Logger.php.