Posted 04 January 2011 - 12:15 AM
I have minimal experience with log4j, and none with log4php, so i doubt i'll be able to help much. However, i do have a few questions:
1. What do you mean you say it doesn't successfully create the file? Do you get any errors? If so, what are they?
2. Are there any errors of any kind that get printed to the screen? If not, are you sure the program runs through to completion?
3. Is your XML config file really missing a '<' right at the beginning, or is that a copy/paste error?
As a general observation, i noticed that your configuration file sets the log level to debug, and you are attempting to log a debug statement, so in an ideal world that should work. If you are sure the program runs through to completion, and there are no other noticable errors, perhaps you could try making a fatal log entry as opposed to a debug log entry, as fatal should always be logged unless you explicitly say not to.