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

annis.libgui.logback.xml Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta.4
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <!-- encoders are assigned the type
    ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
    <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
      <level>INFO</level>
    </filter>
  </appender>


  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">

    <layout class="ch.qos.logback.classic.PatternLayout">
      <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg \(%file:%line\)%n</Pattern>
    </layout>

    <file>${webappHome}/WEB-INF/log/annis-gui.log</file>

    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <FileNamePattern>server.%d{yyyy-MM-dd}.log</FileNamePattern>
      <!-- keep 1 days' worth of history -->
      <MaxHistory>1</MaxHistory>

      <timeBasedFileNamingAndTriggeringPolicy
        class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
        <MaxFileSize>1MB</MaxFileSize>
      </timeBasedFileNamingAndTriggeringPolicy>

    </rollingPolicy>
    
    <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
      <level>INFO</level>
    </filter>
  </appender>

  <logger name="org.apache" level="WARN"/>
  <logger name="com.sun.jersey.core.spi.component.ProviderServices" level="WARN"/>
  <logger name="annis" level="DEBUG" />

  <root level="DEBUG">
    <appender-ref ref="STDOUT" />
    <appender-ref ref="FILE" />
  </root>
  
  <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
  
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy