This content has been marked as final.
Show 3 replies
-
1. Re: Log4j is not outputting to my application specific log f
peterj Jun 17, 2009 1:20 PM (in response to rizqureshi2)That looks correct (fairly close to what I have, my appender is slightly different but if you are getting a file created then the appender declaration is okay). Are you sure that you are using the correct category name?
You could try adding "-Dlog4j.debug" and/or "-Dlog4j.configDebug" to the JAVA_OPTS in the run.conf. These options cause Log4J to print out information about what it is doing - this might give some clue as to what went wrong. -
2. Re: Log4j is not outputting to my application specific log f
genman Jun 17, 2009 6:46 PM (in response to rizqureshi2)One possible problem is including (another) log4j.jar in your application deployment.
-
3. Re: Log4j is not outputting to my application specific log f
rizqureshi2 Jun 18, 2009 5:39 AM (in response to rizqureshi2)Thanks guys, the log4j.jar file was included in ear lib folder. After removing, it started to print messages to file.
Cheers :-)