carterkozak commented on issue #271: Proposed fix for LOG4J2-2610 rollover 
issue:
URL: https://github.com/apache/logging-log4j2/pull/271#issuecomment-502492251
 
 
   If I set the status logger level to trace and don't register the listener, I 
don't see anything helpful in the log surrounding failures:
   ```
   DEBUG StatusLogger Using configurationFactory 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@36d4b5c
   TRACE StatusLogger Trying to find [log4j-rolling-size-with-time.xml] using 
context class loader sun.misc.Launcher$AppClassLoader@18b4aac2.
   DEBUG StatusLogger Not in a ServletContext environment, thus not loading 
WebLookup plugin.
   DEBUG StatusLogger Closing BufferedInputStream 
java.io.BufferedInputStream@53b32d7
   DEBUG StatusLogger Not in a ServletContext environment, thus not loading 
WebLookup plugin.
   DEBUG StatusLogger PluginManager 'Converter' found 46 plugins
   DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-8
   DEBUG StatusLogger Using configurationFactory 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@36d4b5c
   TRACE StatusLogger Trying to find [log4j-rolling-size-with-time.xml] using 
context class loader sun.misc.Launcher$AppClassLoader@18b4aac2.
   DEBUG StatusLogger Not in a ServletContext environment, thus not loading 
WebLookup plugin.
   DEBUG StatusLogger Closing BufferedInputStream 
java.io.BufferedInputStream@3abbfa04
   
   java.lang.AssertionError: Log messages lost : 32
   
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at 
org.apache.logging.log4j.core.appender.rolling.RollingAppenderSizeWithTimeTest.testAppender(RollingAppenderSizeWithTimeTest.java:116)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at 
org.apache.logging.log4j.junit.LoggerContextRule$1.evaluate(LoggerContextRule.java:123)
        at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:27)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
        at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
        at 
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
        at 
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
        at 
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
   
   DEBUG StatusLogger Not in a ServletContext environment, thus not loading 
WebLookup plugin.
   DEBUG StatusLogger PluginManager 'Converter' found 46 plugins
   DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-9
   DEBUG StatusLogger Using configurationFactory 
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@36d4b5c
   TRACE StatusLogger Trying to find [log4j-rolling-size-with-time.xml] using 
context class loader sun.misc.Launcher$AppClassLoader@18b4aac2.
   DEBUG StatusLogger Not in a ServletContext environment, thus not loading 
WebLookup plugin.
   DEBUG StatusLogger Closing BufferedInputStream 
java.io.BufferedInputStream@73ad2d6
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to