JLog: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JLog}}
===Defined in===
libraries/j... |
|||
| Line 34: | Line 34: | ||
===Examples=== | ===Examples=== | ||
< | <source lang="php"> | ||
jimport('joomla.error.log'); | |||
$log = &JLog::getInstance(); | |||
$log->addEntry(array('message' =>'my message')); | |||
</source> | |||
</ | |||
Revision as of 15:52, 1 September 2011
[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
jimport('joomla.error.log');
$log = &JLog::getInstance();
$log->addEntry(array('message' =>'my message'));