Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1058

RollingFileAppender is not working for logback

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.2
    • logback-classic
    • None
    • Windows 7, tomcat 7, JDK 1.7.55

    Description

      I am using logback in my web application, and i want to set RollingFileAppender with FixedWindowRollingPolicy and SizeBasedTriggeringPolicy. but i am getting error in doing the same.

      14:53:30,401 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@9:82 - no applicable action for [triggeringPolicy], current ElementPath is [[configuration][appender][triggeringPolicy]]
      14:53:30,401 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@10:20 - no applicable action for [maxFileSize], current ElementPath is [[configuration][appender][triggeringPolicy][maxFileSize]]

      I am using logback-classic 1.1.2, logback-core 1.1.2 and slf4j-api 1.7.10.
      PFA logback.xml.

      It creates the file and the mentioned pattern zip for the first time, but keeps on appending the same file further.

      Attachments

        1. tests.1.log.zip
          7 kB
        2. test.log
          67 kB
        3. logback.xml
          1 kB

        Activity

          People

            logback-dev Logback dev list
            jeetendranarayan Jeetendra N Tiwari
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: