logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patryk Bartczyk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-1550) CronTriggeringPolicy does not trigger file rolling
Date Fri, 26 Aug 2016 12:04:21 GMT
Patryk Bartczyk created LOG4J2-1550:
---------------------------------------

             Summary: CronTriggeringPolicy does not trigger file rolling
                 Key: LOG4J2-1550
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1550
             Project: Log4j 2
          Issue Type: Bug
    Affects Versions: 2.6.2
            Reporter: Patryk Bartczyk


I am trying to set up log4j2 configuration to trigger rolling logfile every 30 minutes after
an hour. I developed a maven test application, and its sources i provided below:

{code:title=pom.xml|borderStyle=solid}
(...)
<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-api</artifactId>
    <version>2.6.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.6.2</version>
  </dependency>
(...)
{code}

{code:title=Main.java|borderStyle=solid}
package com.mycompany.maventest;

import java.io.IOException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class App {

    static Logger logger = LogManager.getLogger("logsMine");

    public static void main(String[] args) throws IOException, InterruptedException {
        while(true){
            for(int i = 0 ; i < 1000 ; i++)
            {
                Thread.sleep(5000);
                logger.info(i);
            }
            
            break ;
        }}}
{code}

{code:title=log4j2.xml|borderStyle=solid}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="trace">
    <Appenders>
        <RollingFile name="logsMine" fileName="C:/LOG/cs.log"
                     filePattern="C:/LOG/cs_%d{yyyy-MM-dd-HH-mm-ss}.log" append="true">
            <PatternLayout pattern="%d{yyyy-MM-dd  HH:mm:ss,SSS};%p;%m%n"/>
            <CronTriggeringPolicy schedule="30 * * * * ?" evaluateOnStartup="true"/>

        </RollingFile>
    </Appenders>
    <Loggers>
        <Root level="trace">
            <AppenderRef ref="logsMine"/>
        </Root>
    </Loggers>
</Configuration>
{code}

When i start the application i get the followiing console logs
{code:borderStyle=solid}
2016-08-26 12:42:46,011 main DEBUG Installed script engines
2016-08-26 12:42:46,538 main DEBUG Oracle Nashorn Version: 1.8.0_05, Language: ECMAScript,
Threading: Not Thread Safe, Compile: true, Names: {nashorn, Nashorn, js, JS, JavaScript, javascript,
ECMAScript, ecmascript}
2016-08-26 12:42:46,539 main DEBUG PluginManager 'Core' found 99 plugins
2016-08-26 12:42:46,539 main DEBUG PluginManager 'Level' found 0 plugins
2016-08-26 12:42:46,545 main DEBUG Starting 1 Log4j2Scheduled threads
2016-08-26 12:42:46,549 main DEBUG PluginManager 'Lookup' found 13 plugins
2016-08-26 12:42:46,551 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
2016-08-26 12:42:46,565 main TRACE TypeConverterRegistry initializing.
2016-08-26 12:42:46,565 main DEBUG PluginManager 'TypeConverter' found 23 plugins
2016-08-26 12:42:46,580 main DEBUG PatternLayout$Builder(pattern="%d{yyyy-MM-dd  HH:mm:ss,SSS};%p;%m%n",
PatternSelector=null, Configuration(C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml),
Replace=null, charset="null", alwaysWriteExceptions="null", noConsoleNoAnsi="null", header="null",
footer="null")
2016-08-26 12:42:46,581 main DEBUG PluginManager 'Converter' found 41 plugins
2016-08-26 12:42:46,601 main DEBUG Building Plugin[name=CronTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.CronTriggeringPolicy].
2016-08-26 12:42:46,610 main DEBUG createPolicy(Configuration(C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml),
evaluateOnStartup="true", schedule="30 * * * * ?")
2016-08-26 12:42:46,615 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender].
2016-08-26 12:42:46,617 main DEBUG createAppender(fileName="C:/LOG/cs.log", filePattern="C:/LOG/cs_%d{yyyy-MM-dd-HH-mm-ss}.log",
append="true", name="logsMine", bufferedIO="null", bufferSize="null", immediateFlush="null",
CronTriggeringPolicy(CronTriggeringPolicy(schedule=30 * * * * ?)), Strategy=null, PatternLayout(%d{yyyy-MM-dd
 HH:mm:ss,SSS};%p;%m%n), Filter=null, ignoreExceptions="null", advertise="null", advertiseURI="null",
Configuration(C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml))
2016-08-26 12:42:46,627 main DEBUG Starting RollingFileManager C:/LOG/cs.log
2016-08-26 12:42:46,628 main DEBUG PluginManager 'FileConverter' found 2 plugins
2016-08-26 12:42:46,635 main DEBUG Building Plugin[name=appenders, class=org.apache.logging.log4j.core.config.AppendersPlugin].
2016-08-26 12:42:46,636 main DEBUG createAppenders(={logsMine})
2016-08-26 12:42:46,636 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
2016-08-26 12:42:46,637 main DEBUG createAppenderRef(ref="logsMine", level="null", Filter=null)
2016-08-26 12:42:46,637 main DEBUG Building Plugin[name=root, class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger].
2016-08-26 12:42:46,639 main DEBUG createLogger(additivity="null", level="TRACE", includeLocation="null",
={logsMine}, ={}, Configuration(C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml),
Filter=null)
2016-08-26 12:42:46,642 main DEBUG Building Plugin[name=loggers, class=org.apache.logging.log4j.core.config.LoggersPlugin].
2016-08-26 12:42:46,643 main DEBUG createLoggers(={root})
2016-08-26 12:42:46,644 main DEBUG Configuration XmlConfiguration[location=C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml]
initialized
2016-08-26 12:42:46,644 main DEBUG Starting configuration XmlConfiguration[location=C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml]
2016-08-26 12:42:46,645 main DEBUG Started configuration XmlConfiguration[location=C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml]
OK.
2016-08-26 12:42:46,646 main TRACE Stopping org.apache.logging.log4j.core.config.DefaultConfiguration@26a1ab54...
2016-08-26 12:42:46,646 main TRACE DefaultConfiguration notified 1 ReliabilityStrategies that
config will be stopped.
2016-08-26 12:42:46,646 main TRACE DefaultConfiguration stopping root LoggerConfig.
2016-08-26 12:42:46,646 main TRACE DefaultConfiguration notifying ReliabilityStrategies that
appenders will be stopped.
2016-08-26 12:42:46,646 main TRACE DefaultConfiguration stopping remaining Appenders.
2016-08-26 12:42:46,647 main DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false-1
2016-08-26 12:42:46,647 main TRACE DefaultConfiguration stopped 1 remaining Appenders.
2016-08-26 12:42:46,647 main TRACE DefaultConfiguration cleaning Appenders from 1 LoggerConfigs.
2016-08-26 12:42:46,648 main DEBUG Stopped org.apache.logging.log4j.core.config.DefaultConfiguration@26a1ab54
OK
2016-08-26 12:42:46,731 main TRACE Reregistering MBeans after reconfigure. Selector=org.apache.logging.log4j.core.selector.ClassLoaderContextSelector@7a8c8dcf
2016-08-26 12:42:46,731 main TRACE Reregistering context (1/1): '73d16e93' org.apache.logging.log4j.core.LoggerContext@24269709
2016-08-26 12:42:46,734 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93'
2016-08-26 12:42:46,736 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93,component=StatusLogger'
2016-08-26 12:42:46,737 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93,component=ContextSelector'
2016-08-26 12:42:46,738 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93,component=Loggers,name=*'
2016-08-26 12:42:46,738 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93,component=Appenders,name=*'
2016-08-26 12:42:46,739 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93,component=AsyncAppenders,name=*'
2016-08-26 12:42:46,739 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93,component=AsyncLoggerRingBuffer'
2016-08-26 12:42:46,739 main TRACE Unregistering but no MBeans found matching 'org.apache.logging.log4j2:type=73d16e93,component=Loggers,name=*,subtype=RingBuffer'
2016-08-26 12:42:46,742 main DEBUG Registering MBean org.apache.logging.log4j2:type=73d16e93
2016-08-26 12:42:46,746 main DEBUG Registering MBean org.apache.logging.log4j2:type=73d16e93,component=StatusLogger
2016-08-26 12:42:46,748 main DEBUG Registering MBean org.apache.logging.log4j2:type=73d16e93,component=ContextSelector
2016-08-26 12:42:46,750 main DEBUG Registering MBean org.apache.logging.log4j2:type=73d16e93,component=Loggers,name=
2016-08-26 12:42:46,752 main DEBUG Registering MBean org.apache.logging.log4j2:type=73d16e93,component=Appenders,name=logsMine
2016-08-26 12:42:46,756 main TRACE Using default SystemClock for timestamps.
2016-08-26 12:42:46,756 main TRACE Using DummyNanoClock for nanosecond timestamps.
2016-08-26 12:42:46,757 main DEBUG Reconfiguration complete for context[name=73d16e93] at
URI C:\Users\patryk.bartczyk\Documents\NetBeansProjects\MavenTEST\target\classes\log4j2.xml
(org.apache.logging.log4j.core.LoggerContext@24269709) with optional ClassLoader: null
2016-08-26 12:42:46,757 main DEBUG Shutdown hook enabled. Registering a new one.
2016-08-26 12:42:46,758 main DEBUG LoggerContext[name=73d16e93, org.apache.logging.log4j.core.LoggerContext@24269709]
started OK.
2016-08-26 12:43:30,019 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
10.0 milliseconds
2016-08-26 12:43:30,021 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-30.log, renameEmptyFiles=false]
2016-08-26 12:43:30,027 Log4j2-Log4j2Scheduled-1 TRACE Renamed file C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-30.log
with Files.move
2016-08-26 12:43:31,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:31,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-29.log, renameEmptyFiles=false]
2016-08-26 12:43:32,002 Log4j2-Log4j2Scheduled-1 DEBUG DefaultRolloverStrategy.purgeAscending
deleting C:\LOG\cs_2016-08-26-12-43-30.log at low index 1: all slots full.
2016-08-26 12:43:32,004 Log4j2-Log4j2Scheduled-1 DEBUG DefaultRolloverStrategy.purgeAscending
executing 5 of 6: FileRenameAction[C:\LOG\cs_2016-08-26-12-43-30.log to C:\LOG\cs_2016-08-26-12-43-30.log,
renameEmptyFiles=true]
2016-08-26 12:43:32,005 Log4j2-Log4j2Scheduled-1 ERROR Unable to move file C:\LOG\cs_2016-08-26-12-43-30.log
to C:\LOG\cs_2016-08-26-12-43-30.log: java.nio.file.NoSuchFileException C:\LOG\cs_2016-08-26-12-43-30.log
-> C:\LOG\cs_2016-08-26-12-43-30.log
2016-08-26 12:43:32,006 Log4j2-Log4j2Scheduled-1 ERROR Unable to copy file C:\LOG\cs_2016-08-26-12-43-30.log
to C:\LOG\cs_2016-08-26-12-43-30.log: java.nio.file.NoSuchFileException C:\LOG\cs_2016-08-26-12-43-30.log
2016-08-26 12:43:33,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:33,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-31.log, renameEmptyFiles=false]
2016-08-26 12:43:33,004 Log4j2-Log4j2Scheduled-1 TRACE Renamed file C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-31.log
with Files.move
2016-08-26 12:43:34,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:34,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-32.log, renameEmptyFiles=false]
2016-08-26 12:43:35,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
1.0 milliseconds
2016-08-26 12:43:35,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-33.log, renameEmptyFiles=false]
2016-08-26 12:43:36,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:36,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-34.log, renameEmptyFiles=false]
2016-08-26 12:43:37,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:37,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-35.log, renameEmptyFiles=false]
2016-08-26 12:43:37,005 Log4j2-Log4j2Scheduled-1 TRACE Renamed file C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-35.log
with Files.move
2016-08-26 12:43:38,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:38,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-36.log, renameEmptyFiles=false]
2016-08-26 12:43:39,003 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
2.0 milliseconds
2016-08-26 12:43:39,004 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-37.log, renameEmptyFiles=false]
2016-08-26 12:43:40,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:40,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-38.log, renameEmptyFiles=false]
2016-08-26 12:43:41,000 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:41,001 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-39.log, renameEmptyFiles=false]
2016-08-26 12:43:42,003 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:42,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-40.log, renameEmptyFiles=false]
2016-08-26 12:43:42,005 Log4j2-Log4j2Scheduled-1 TRACE Renamed file C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-40.log
with Files.move
2016-08-26 12:43:43,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:43,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-41.log, renameEmptyFiles=false]
2016-08-26 12:43:44,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:44,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-42.log, renameEmptyFiles=false]
2016-08-26 12:43:45,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
1.0 milliseconds
2016-08-26 12:43:45,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-43.log, renameEmptyFiles=false]
2016-08-26 12:43:46,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:46,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-44.log, renameEmptyFiles=false]
2016-08-26 12:43:47,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:47,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-45.log, renameEmptyFiles=false]
2016-08-26 12:43:47,004 Log4j2-Log4j2Scheduled-1 TRACE Renamed file C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-45.log
with Files.move
2016-08-26 12:43:48,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:48,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-46.log, renameEmptyFiles=false]
2016-08-26 12:43:49,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:49,001 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-47.log, renameEmptyFiles=false]
2016-08-26 12:43:50,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:50,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-48.log, renameEmptyFiles=false]
2016-08-26 12:43:51,003 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:51,004 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-49.log, renameEmptyFiles=false]
2016-08-26 12:43:52,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:52,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-50.log, renameEmptyFiles=false]
2016-08-26 12:43:52,005 Log4j2-Log4j2Scheduled-1 TRACE Renamed file C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-50.log
with Files.move
2016-08-26 12:43:53,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
1.0 milliseconds
2016-08-26 12:43:53,004 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-51.log, renameEmptyFiles=false]
2016-08-26 12:43:54,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:54,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-52.log, renameEmptyFiles=false]
2016-08-26 12:43:55,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:55,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-53.log, renameEmptyFiles=false]
2016-08-26 12:43:56,001 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:56,002 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-54.log, renameEmptyFiles=false]
2016-08-26 12:43:57,002 Log4j2-Log4j2Scheduled-1 TRACE DefaultRolloverStrategy.purge() took
0.0 milliseconds
2016-08-26 12:43:57,003 Log4j2-Log4j2Scheduled-1 DEBUG RollingFileManager executing synchronous
FileRenameAction[C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-55.log, renameEmptyFiles=false]
2016-08-26 12:43:57,004 Log4j2-Log4j2Scheduled-1 TRACE Renamed file C:\LOG\cs.log to C:\LOG\cs_2016-08-26-12-43-55.log
with Files.move
{code}

On my file system i see that the files after around 45 seconds start to appear. It is created
each file in every 5 seconds (example name cs_2016-08-26-12-43-50.log). It is not working
as i would like it to work. I expected to see every new file each every 30 minutes after an
hour. Please could you confirm whether the following is correct and what should be fixed to
see the expected result. 

Thank you
Regards,
Patryk



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

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message