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

Remko Popma updated LOG4J2-1622:
--------------------------------
    Description: 
like this:
{code}
<RollingFile name="RollingFile" fileName="${filepath}/app.log" 
filePattern="${filepath}/logs/app-%d{yyyy-MM-dd}.log">
                        <PatternLayout>
                                <Pattern>${patternTime}</Pattern>
                        </PatternLayout>
                        <Policies>
                                <CronTriggeringPolicy schedule="0 0 0 * * ?"/>
                        </Policies>
                </RollingFile>
{code}


  was:
like this:
<RollingFile name="RollingFile" fileName="${filepath}/app.log" 
filePattern="${filepath}/logs/app-%d{yyyy-MM-dd}.log">
                        <PatternLayout>
                                <Pattern>${patternTime}</Pattern>
                        </PatternLayout>
                        <Policies>
                                <CronTriggeringPolicy schedule="0 0 0 * * ?"/>
                        </Policies>
                </RollingFile>


> how to config a DailyRollingFileAppender like log4j1.x
> ------------------------------------------------------
>
>                 Key: LOG4J2-1622
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1622
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Appenders
>    Affects Versions: 2.6.2
>            Reporter: Tboy
>
> like this:
> {code}
> <RollingFile name="RollingFile" fileName="${filepath}/app.log" 
> filePattern="${filepath}/logs/app-%d{yyyy-MM-dd}.log">
>                       <PatternLayout>
>                               <Pattern>${patternTime}</Pattern>
>                       </PatternLayout>
>                       <Policies>
>                               <CronTriggeringPolicy schedule="0 0 0 * * ?"/>
>                       </Policies>
>               </RollingFile>
> {code}



--
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