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

.stool.server.5.0.4.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
<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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy