| 3 | //  $Id$ | //  $Id$ | 
| 4 | // --------------------------------------------------------------------------- | // --------------------------------------------------------------------------- | 
| 5 | //  $Log$ | //  $Log$ | 
| 6 |  | //  Revision 1.4  2003/02/13 00:43:41  joko | 
| 7 |  | //  + logfile name now can get passed via defined constant | 
| 8 |  | // | 
| 9 | //  Revision 1.3  2003/02/09 17:14:49  joko | //  Revision 1.3  2003/02/09 17:14:49  joko | 
| 10 | //  + now able to redirect errors raised by PEAR to logfile | //  + now able to redirect errors raised by PEAR to logfile | 
| 11 | // | // | 
| 32 |  |  | 
| 33 | function constructor() { | function constructor() { | 
| 34 | // FIXME: this is hardcoded! | // FIXME: this is hardcoded! | 
| 35 | $this->_init_logger("../core/var/log/logfile.txt", 1); | $logfile = 'logfile.txt'; | 
| 36 |  | if (defined('LOGFILE')) { | 
| 37 |  | $logfile = LOGFILE; | 
| 38 |  | } | 
| 39 |  | $this->_init_logger($logfile, 1); | 
| 40 | } | } | 
| 41 |  |  | 
| 42 | // TODO: split by loglevel here to make seperated logfiles possible (debug, normal, errors) | // TODO: split by loglevel here to make seperated logfiles possible (debug, normal, errors) |