API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JLog::__construct | ( | $ | path, |
$ | options | ||
) |
Constructor
protected
string | $path | Log file path |
array | $options | Log file options |
Références $path.
JLog::_closeLog | ( | ) |
Close the log file pointer
public
JLog::_openLog | ( | ) |
Open the log file pointer and create the file if it doesn't exist
public
Références $date, $now, $version, JFolder::create(), JFactory::getDate(), et jimport().
JLog::addEntry | ( | $ | entry | ) |
& JLog::getInstance | ( | $ | file = 'error.php' , |
$ | options = null , |
||
$ | path = null |
||
) | [static] |
Returns a reference to the global log object, only creating it if it doesn't already exist.
This method must be invoked as:
$log = & JLog::getInstance();
public
Références $config, $file, $path, JPath::clean(), JFactory::getConfig(), et jimport().
Référencé par JError::handleLog(), plgSystemLog::onLoginFailure(), et MediaControllerFile::upload().
JLog::setOptions | ( | $ | options | ) |
Set log file options
public
array | $options | Associative array of options to set |
JLog::$_file |
JLog::$_format = "{DATE}\t{TIME}\t{LEVEL}\t{C-IP}\t{STATUS}\t{COMMENT}" |
JLog::$_path |