API16

JLog

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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' );



Examples

jimport('joomla.error.log');

$log = &JLog::getInstance();
$log->addEntry(array('message' =>'my message'));
Advertisement