Uploaded image for project: 'CAL10N'
  1. CAL10N
  2. CAL-45

log files are not rolling on windows 2012 with tomcat 7

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • Windows 2012 with Tomcat 7

    Description

      Hi,

      I have created following appender in logback.xml file. The log files are getting created but the logs are not rolling over. It is on 2012 server with tomcat.

      <appender name="DEFAULT_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">

      <file>${APP_HOME}/logs/App.log</file>
      <encoder>
      <pattern>%-5level %d

      {MM/dd HH:mm:ss.SSS}

      [%thread] %logger

      {20}

      %msg%n</pattern>
      </encoder>

      <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <fileNamePattern>${APP_HOME}/logs/App.log.%i</fileNamePattern>
      <minIndex>1</minIndex>
      <maxIndex>5</maxIndex>
      </rollingPolicy>

      <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
      <maxFileSize>5MB</maxFileSize>
      </triggeringPolicy>

      But with below option ,

      <fileNamePattern> ${APP_HOME}/logs/App.log.%i.zip </fileNamePattern>

      With zip option for rolling the there are 5 log zip files are created but all of them has same data. The actual log is growing.

      Please let me know what may be the issue.

      Thanks
      Sasi

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            sasikishore.k@gmail.com Sasi Kishore K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: