API16:JLog
From Joomla! Documentation
[Edit Descripton] Template:Description:JLog
Defined in
libraries/joomla/error/log.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor |
| setOptions | Set log file options |
| addEntry | |
| getInstance | Returns the global log object, only creating it if it doesn't already exist. |
Importing
jimport( 'joomla.error.log' );
[Edit See Also] Template:SeeAlso:JLog
Examples
<CodeExamplesForm />
No Title
===Defined in===
libraries/joomla/error/log.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor |
| setOptions | Set log file options |
| addEntry | |
| getInstance | Returns a reference to the global log object, only creating it if it doesn't already exist. |
Importing
jimport( 'joomla.error.log' );
Examples
Code Examples
No Title
jimport('joomla.error.log');
$log = &JLog::getInstance();
$log->addEntry(array('LEVEL' => '1','STATUS' => 'SOME ERROR:','COMMENT' =>'some comment'));