<div dir="ltr">Hi Ceki,<div><br></div><div style>well, half-true in my case... I have that code in my contextDestroyed(..) method, however, for whatever reason I have lc.reset() instead of lc.stop there... Will change and test that once I'm back to my dev machine. I will let you know then.</div>
<div style><br></div><div style>Thank you for your help.</div><div style><br></div><div style>Regards,</div><div style>rox</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 4:01 PM, ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rox,<br>
<br>
Are you stopping logback when your application is stopped (and then started)? The conextDestroyed method of javax.servlet.<u></u>ServletContextListener is a good place for invoking such code:<br>
<br>
import javax.servlet.<u></u>ServletContextListener;<br>
import javax.servlet.<u></u>ServletContextEvent;<br>
import org.slf4j.LoggerFactory;<br>
import ch.qos.logback.classic.<u></u>LoggerContext;<br>
<br>
public class MyServletContextListener implements<br>
                                      ServletContextListener {<br>
<br>
  public void contextInitialized(<u></u>ServletContextEvent sce) {<br>
  }<br>
<br>
  public void contextDestroyed(<u></u>ServletContextEvent sce)  {<br>
    LoggerContext lc =<br>
              (LoggerContext) LoggerFactory.<u></u>getILoggerFactory();<br>
    lc.stop();<br>
}<br>
<br>
Please let us know if stopping logback as described above helps.<div class="HOEnZb"><div class="h5"><br>
<br>
On 16.04.2013 15:06, Roxolid wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I have a trouble with logback configuration under WebLogic 12c. My<br>
application is using RollingFile Appender with TimeBasedRollingPolicy<br>
and the problem is it stops logging every time I stop and then start the<br>
application through WebLogic Console. However, the logging is back when<br>
a rollover occurs - in the new file logging continues...<br>
<br>
Has anyone faced such behavior (and knows the solution)?<br>
<br>
Thank you in advance.<br>
<br>
Regards,<br>
<br>
rox<br>
<br>
</blockquote>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Ceki<br>
65% of statistics are made up on the spot<br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</font></span></blockquote></div><br></div>