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... |
m preparing for archive only |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/error/log.php | libraries/joomla/error/log.php | ||
| Line 24: | Line 19: | ||
|Returns a reference to the global log object, only creating it if it doesn't already exist. | |Returns a reference to the global log object, only creating it if it doesn't already exist. | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.error.log' );</source> | <source lang="php">jimport( 'joomla.error.log' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JLog | category=JLog | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 00:56, 25 March 2017
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' );