API16:JLog
From Joomla! Documentation
(Difference between revisions)
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JLog}}
===Defined in===
libraries/j...) |
(→Examples) |
||
| Line 34: | Line 34: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <source lang="php"> |
| − | + | jimport('joomla.error.log'); | |
| − | + | ||
| − | + | $log = &JLog::getInstance(); | |
| − | + | $log->addEntry(array('message' =>'my message')); | |
| − | + | </source> | |
| − | + | ||
| − | + | ||
| − | </ | + | |
Latest revision as of 10:52, 1 September 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] Description:JLog
Contents |
[edit] Defined in
libraries/joomla/error/log.php
[edit] 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. |
[edit] Importing
jimport( 'joomla.error.log' );
[edit] Examples
jimport('joomla.error.log'); $log = &JLog::getInstance(); $log->addEntry(array('message' =>'my message'));
