How to use the Xaraya logger

"marc" <[email protected]> Mon, 29 Sep 2003 17:42:52 +0200
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization Xaraya News Server
Message-ID <[email protected]>
Logging is not a subject of great interest, and in a lrage site you'll find
your logs grow to huge proportions, but if you are still building and
debugging a site you may want to log events while you test. Here's a quick
qay to activate the built in Xaraya logger.

1. Go to the configuration file http://<yoursite>/html/var/config.system.php

2. Lines 22/23 should read:

$systemConfiguration['Log.LoggerName'] = 'dummy';
$systemConfiguration['Log.LoggerArgs'] = array();

3. Change this to read:

$systemConfiguration['Log.LoggerName'] = 'simple';
$systemConfiguration['Log.LoggerArgs'] = array('fileName' =>
'var/logs/log.txt');

Note the capital "N" in fileName!!
You can change the directory to any directory below http://<yoursite>/html/
according to your needs.
As I'm not sure of the behavior in all operating systems, it's probably best
to stick an empty log.txt file (or whatever you put in the path) in the
place it's supposed to be.

The log should catch all errors Xaraya and PHP generate, even those that the
system suppresses on screen.

Marc