.stool.server.5.1.2.source-code.logback.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server Show documentation
Show all versions of server Show documentation
Stool's server component.
<configuration> <property name="root" value="/var/lib/stool/logs" /> <logger name="ACCESS" additivity="false"> <appender name="ACCESS" class="ch.qos.logback.core.rolling.RollingFileAppender"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${root}/access-%d{yyyy-MM-dd, UTC}.log</fileNamePattern> <maxHistory>90</maxHistory> <totalSizeCap>1GB</totalSizeCap> </rollingPolicy> <encoder class="net.oneandone.stool.server.logging.AccessLogEncoder" /> </appender> </logger> <logger name="DETAILS" level="debug" additivity="true"> <appender name="DETAILS" class="ch.qos.logback.core.rolling.RollingFileAppender"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${root}/details-%d{yyyy-MM-dd, UTC}.log</fileNamePattern> <maxHistory>90</maxHistory> <totalSizeCap>1GB</totalSizeCap> </rollingPolicy> <encoder class="net.oneandone.stool.server.logging.DetailsLogEncoder" /> </appender> </logger> <root level="${loglevel:-INFO}"> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> </encoder> </appender> </root> </configuration>