<?xml version="1.0" encoding="UTF-8"?>

<!-- For assistance related to logback-translator or configuration  -->
<!-- files in general, please contact the logback user mailing list -->
<!-- at http://www.qos.ch/mailman/listinfo/logback-user             -->
<!--                                                                -->
<!-- For professional support please see                            -->
<!--    http://www.qos.ch/shop/products/professionalSupport         -->
<!--                                                                -->
<configuration>
  <appender name="moaspss" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
    <File>${catalina.base}/logs/moa-spss.log</File>
    <encoder>
      <pattern>logback | %5p | %d{dd HH:mm:ss,SSS} | %C{1} | %20c | %10t | %m%n</pattern>
    </encoder>
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <maxIndex>10</maxIndex>
      <FileNamePattern>${catalina.base}/logs/moa-spss.log.%i</FileNamePattern>
    </rollingPolicy>
    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
      <MaxFileSize>1000KB</MaxFileSize>
    </triggeringPolicy>
  </appender>
  <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>logback | %5p | %d{dd HH:mm:ss,SSS} | %C{1} | %20c | %10t | %m%n</pattern>
    </encoder>
  </appender>
  <logger name="moa.spss.server" level="info">
    <appender-ref ref="moaspss"/>
    <appender-ref ref="stdout"/>
  </logger>
  <logger name="iaik.pki" level="info">
    <appender-ref ref="moaspss"/>
    <appender-ref ref="stdout"/>
  </logger>
  <logger name="at.gv.egovernment.moa.spss" level="info">
    <appender-ref ref="moaspss"/>
    <appender-ref ref="stdout"/>
  </logger>
  <logger name="at.gv.egovernment.moa.sig.tsl" level="info">
    <appender-ref ref="SPSS"/>
    <appender-ref ref="stdout"/>
  </logger>
  <logger name="iaik.server" level="info">
    <appender-ref ref="moaspss"/>
    <appender-ref ref="stdout"/>
  </logger>
  <root level="warn">
    <appender-ref ref="stdout"/>
  </root>
</configuration>
