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

Ralph Goers updated LOG4J2-1621:
--------------------------------
    Description: 
1. set system property :
System.setProperty("Log4jContextSelector", 
"org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
2. maven dependency on distruptor 3.3.5
3. log4j2.6.2.xml
{code}
                <RollingFile name="RollingFile" fileName="d:/app.log" 
filePattern="d:/logs/app-%d{yyyy-MM-dd}.log">
                        <PatternLayout>
                                <Pattern>%d{ISO8601} [%t] %-5p [%c{50}#%M:%L] : 
%m%n</Pattern>
                        </PatternLayout>
                        <Policies>
                                <CronTriggeringPolicy schedule="0 0 0 * * ?"/>
                        </Policies>
                </RollingFile>
{code}
4. could not get the daily roll over file of yesterday.
5. and get ERROR Unable to move file.......
    ERROR Unable to copy file......

  was:
1. set system property :
System.setProperty("Log4jContextSelector", 
"org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
2. maven dependency on distruptor 3.3.5
3. log4j2.6.2.xml
<RollingFile name="RollingFile" fileName="d:/app.log" 
filePattern="d:/logs/app-%d{yyyy-MM-dd}.log">
                        <PatternLayout>
                                <Pattern>%d{ISO8601} [%t] %-5p [%c{50}#%M:%L] : 
%m%n</Pattern>
                        </PatternLayout>
                        <Policies>
                                <CronTriggeringPolicy schedule="0 0 0 * * ?"/>
                        </Policies>
                </RollingFile>
4. could not get the daily roll over file of yesterday.
5. and get ERROR Unable to move file.......
    ERROR Unable to copy file......


> RollingFileAppender can't generate daily file according to cron expressions 
> ----------------------------------------------------------------------------
>
>                 Key: LOG4J2-1621
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1621
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.6.2
>         Environment: jdk1.8
>            Reporter: Tboy
>            Priority: Critical
>
> 1. set system property :
> System.setProperty("Log4jContextSelector", 
> "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
> 2. maven dependency on distruptor 3.3.5
> 3. log4j2.6.2.xml
> {code}
>                 <RollingFile name="RollingFile" fileName="d:/app.log" 
> filePattern="d:/logs/app-%d{yyyy-MM-dd}.log">
>                       <PatternLayout>
>                               <Pattern>%d{ISO8601} [%t] %-5p [%c{50}#%M:%L] : 
> %m%n</Pattern>
>                       </PatternLayout>
>                       <Policies>
>                               <CronTriggeringPolicy schedule="0 0 0 * * ?"/>
>                       </Policies>
>               </RollingFile>
> {code}
> 4. could not get the daily roll over file of yesterday.
> 5. and get ERROR Unable to move file.......
>     ERROR Unable to copy file......



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

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

Reply via email to