All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chapters.appenders.conf.logback-RollingSizeBased.xml Maven / Gradle / Ivy

There is a newer version: 1.3.0-alpha4
Show newest version
<configuration>

  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>test.log</file>                                        
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <fileNamePattern>test.%i.log.zip</fileNamePattern>
      <minIndex>1</minIndex>
      <maxIndex>3</maxIndex>
    </rollingPolicy>

    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
      <maxFileSize>5MB</maxFileSize>
    </triggeringPolicy>
    <encoder>
      <pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
    </encoder>
  </appender>
	
	<root level="DEBUG">
		<appender-ref ref="FILE" />
	</root>
</configuration>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy