<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
  <appender name="jetty" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <File>${idp.home}/logs/jetty.log</File>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <FileNamePattern>${idp.home}/logs/jetty-%d{yyyy-MM-dd}.log.gz</FileNamePattern>
    </rollingPolicy>
    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
      <charset>UTF-8</charset>
      <Pattern>%date{ISO8601} - %level [%logger:%line] - %msg%n</Pattern>
    </encoder>
  </appender>

  <appender name="jetty-access" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>${idp.home}/logs/access.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>${idp.home}/logs/access-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
    </rollingPolicy>
    <encoder>
      <pattern>%msg%n</pattern>
    </encoder>
  </appender>

  <root level="INFO">
    <appender-ref ref="jetty" />
  </root>

  <logger name="org.eclipse.jetty.server.RequestLog" level="INFO" additivity="false">
    <appender-ref ref="jetty-access" />
  </logger>

  <logger name="org.springframework" level="OFF" />
  <logger name="ch.qos.logback" level="WARN" />
</configuration>
