I play with the new Joomla 1.7 system, built on the Joomla 11 platform, and all my registration code from earlier versions of Joomla no longer works (they seem to write log entries, but with the wrong syntax, so the messages are empty).
Does anyone know the correct syntax for the new version of JLog? Here is my existing code -
$log = &JLog::getInstance('test.log.php');
$log->addEntry(array('COMMENT' => 'A test Logging message'));
This creates a log file, but the actual log entry is as follows:
#<?php die('Forbidden.'); ?>
#Date: 2011-08-08 16:59:42 UTC
#Software: Joomla Platform 11.1 Stable+Modified [ Ember ] 01-Jun-2011 06:00 GMT
#Fields: date time priority clientip category message
2011-08-08 16:59:42 INFO 127.0.0.1 -
I searched Joomla documents and the Internet and did not find examples of how to use this class.
Thank!
julio source
share