Grmpf! There was a simple typo in the ini file and log4php did ... nothing! Not even tell me that there was an error or even where exactly! It took me quite some time to debug that. How I hate such software...
I understand that a logging framework tries to be as non-disruptive as possible and we can argue about whether it should throw an exception just because the database server, it tries to log, to is suddenly (temporarily) unavailable but as parsing the ini file happens at the very first of most applications I'm totally in favour of throwing an exception here!
Please find a patch attached. It will cause the output to look like:
$ php testPDO.php
Exception: LoggerConfiguratorIni: Error parsing testPDO.properties on line 7
in /srv/home/james/workspace/log4php/src/main/php/configurators/LoggerConfiguratorIni.php on line 307
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|1d 11h 13m||1||Christian Grobmeier||28/Jul/09 06:35|
|1587d 5h 20m||1||Ivan Habunek||01/Dec/13 10:56|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Fix Version/s||2.0 [ 12313916 ]|
|Affects Version/s||2.0 [ 12313916 ]|
|Affects Version/s||2.2 [ 12313918 ]|