Hi! Just a quick introduction, my name is Ivan Habunek, I live in Zagreb, Croatia, and I have made several small contributions to the project. I hope to make more in the near future. At the moment, I try to fix problems which annoy me personally.
I use exclusively XML to configure log4php and at times this can be difficult because of: a) lack of proper documentation for XML configuration b) lack of any error reporting, as far as I can tell I would like to help address these issues. Concerning the second issue, there is a setting in the XML configuration (the debug attribute in log4php:configuration node) which is supposed to turn on 'internal logging' (see http://logging.apache.org/log4php/apidocs/index.html), but as far as I can see, this does nothing. Looking at the code, it seems that this setting is not even parsed in LoggerConfiguratorXml. In my opinion, it would make log4php much easier to use if it would report any errors encountered in runtime, especially when parsing the configuration. I would like your help and advice on how this would be best accomplished. One option is just to trigger an E_USER_WARNING when an error is encountered. The second option may be to use log4php itself to log the error, although I'm not that familiar enough with the code base at this point to propose a way to do this. After the error is identified and reported, the offending piece of configuration can either: * be reverted to a default setting (e.g. when an invalid layout class is specified for an appender, the default layout can be used), or * discarded completely (for example if an invalid appender class is specified, just ignore the appender definition). What are your thoughts on this? Regards, Ivan
