Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

After Making Changes In Log4j.xml Application Needs Recompilation?

843810Aug 17 2010 — edited Aug 20 2010
Hello,

I am using log4j in my jsp pages and for that I instantiating Logger class like this
Logger logger = Logger.getLogger("test.jsp");
{code} 
And I have log4j.xml in the classpath.

I believe, priority levels can be changed and log level can be changed without re-compiling.
Change the log4j.xml and re-run jsp pages. 
However I need to re-compile after making changes in log4j.xml file. Without re-compilation changes are not getting reflected.

Why I need to re-compile application in order to see the changes I have made in log4j.xml?

Appreciate any help in this regard.

Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2010
Added on Aug 17 2010
14 comments
2,124 views