[Vtigercrm-developers] vtigercrm-developers Digest, Vol 214, Issue 2

Alan Lord alanslists at gmail.com
Mon Nov 6 14:18:11 GMT 2023


vtiger devs, this seems really crazy. How can we work on a codebase with 
no logger?

What I don't quite follow is why we don't get a log file...

The whole process starts with various files (like CRMEntity) requiring 
the file `include/logging.php`.

This does a (now) pointless if/else test and sets the path for a 
constant LOG4PHP_DIR to 'libraries/log4php'.

Finally it calls `Logger::configure('log4php.properties');`

Now if you read through the two files in `libraries/log4php`, it looks 
to me like a call to $log->[info/debug/warn/fatal/error] should still 
write a message to the log/vtigercrm.log file if any of the log levels 
are enabled.

If I set all of them to true in Logger.php, and change the rootLogger to 
DEBUG I still don't get a logfile.

And of course no real way to look at a log to see why it isn't working :-(


Al





More information about the vtigercrm-developers mailing list