Joomla’s JLog class enables to create log files with useful debug info and other log messages. Following is the PHP code that can be used to log messages.
jimport( 'joomla.error.log' );
$log = JLog::getInstance('log_file.php'); // get an instance of JLog
// create entry array
$entry = array('LEVEL' => '1', 'STATUS' => "SOME ERROR:", 'COMMENT' => $shortUrl->getError() );
// add entry to the log
$log->addEntry($entry);









Twitter Updates
Gosh, I wish I would have had that infromtoain earlier!