assembly.conf.logback-access.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomcat-slf4j-logback-config
Show all versions of tomcat-slf4j-logback-config
Tomcat Slf4j Logback Integration Configuration
<?xml version="1.0" encoding="UTF-8"?> <!-- Tomcat-Slf4j-Logback (https://github.com/tomcat-slf4j-logback/tomcat-slf4j-logback-config/) Copyright (c) 2010-2019 Tomcat-Slf4j-Logback. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v10.html. Contributors: Tomcat-Slf4j-Logback Team. --> <configuration> <property name="max.retention.days" value="60" /> <!-- always good activate OnConsoleStatusListener --> <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="ch.qos.logback.access.PatternLayoutEncoder"> <pattern>common</pattern> </encoder> </appender> <appender name="ACCESS-LOG" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${catalina.base}/logs/localhost-access.log</file> <append>true</append> <encoder class="ch.qos.logback.access.PatternLayoutEncoder"> <charset>utf-8</charset> <pattern>common</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>${catalina.base}/logs/archive/localhost-access-%d{yyyyMMdd}-%i.log.tar.gz</fileNamePattern> <maxHistory>${max.retention.days}</maxHistory> <maxFileSize>20MB</maxFileSize> </rollingPolicy> </appender> <appender-ref ref="ACCESS-LOG" /> </configuration>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy