[ 
https://issues.apache.org/jira/browse/LOG4J2-717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Remko Popma resolved LOG4J2-717.
--------------------------------
    Resolution: Not A Problem

Closing this ticket as "Not a Problem ". 
Please reopen if this is still an issue. 

> Logging after web application reload
> ------------------------------------
>
>                 Key: LOG4J2-717
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-717
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.0-rc1, 2.0-rc2
>         Environment: Windows 7, Java Web Application with tomcat, Servlet API 
> 3.0
>            Reporter: Mohammad Melhem
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> I have a web app that logs to files using RollingFileAppender. it simply has 
> the log4j2.xml in the classpath and it contains where to log with the 
> required policies and everything worked fine (since Servlet API 3.0 is used, 
> there is no special configs needed as I saw on the website). the problem 
> happens when I reload the web app. It starts writing over the old log files 
> and go through the same pattern. now I kinda know what is the source of this 
> problem. Unfortunately, the one who deployed the web apps has put the log4j 
> lib into each web app instead of putting it inside tomcat lib folder and 
> defined a logger for each web app, so each time the web app is reloaded, it's 
> like the logger doesn't see the the log files that are already created 
> previously. So, Can anyone give me a solution so that when reloading it will 
> just continue the normal behaviour (continue writing on the last file or 
> create a new one). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to