JLog
Description
Joomla! Logging class
This class is designed to build log files based on the W3C specification at: http://www.w3.org/TR/WD-logfile.html
Located in /joomla/error/log.php (line 29)
JObject (Subpackage Base)
![]()
JLog (Subpackage Error)
Method Summary
Variables
resource
$_file
(line 35)
Log File Pointer
string
$_format
= "{DATE}\t{TIME}\t{LEVEL}\t{C-IP}\t{STATUS}\t{COMMENT}" (line 47)
Log Format
string
$_path
(line 41)
Log File Path
Inherited Variables
Inherited from JObject
JObject::$_errors
Methods
Constructor
JLog
__construct
(string $path, array $options)
- string $path: Log file path
- array $options: Log file options
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
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();
object The
&getInstance
([ $file = 'error.php'], [ $options = null], [ $path = null])
- $file
- $options
- $path
Set log file options
boolean
setOptions
(array $options)
- array $options: Associative array of options to set
Open the log file pointer and create the file if it doesn't exist
boolean
_openLog
()
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
Documentation generated on Tue, 29 Jan 2008 18:48:13 +0000 by phpDocumentor 1.3.1




static