chapters.appenders.conf.logback-sizeAndTime.xml Maven / Gradle / Ivy
<configuration> <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /> <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>mylog.txt</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <!-- rollover daily --> <fileNamePattern>mylog-%d{yyyy-MM-dd'T'HHmmss}.%i.txt</fileNamePattern> <maxFileSize>100</maxFileSize> <maxHistory>2</maxHistory> <totalSizeCap>200</totalSizeCap> </rollingPolicy> <encoder> <pattern>%msg%n</pattern> </encoder> </appender> <root level="debug"> <appender-ref ref="ROLLING" /> </root> </configuration>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy