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

<!--
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->

<!-- XXX Schema is NOT official from logback -->
<configuration
    xmlns="http://ch.qos.logback/xml/ns/logback"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://ch.qos.logback/xml/ns/logback https://raw.github.com/enricopulatzo/logback-XSD/master/src/main/xsd/logback.xsd">

  <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <!-- wide -->
      <!--<pattern>%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX", UTC} %-5level [%-20.20thread] %-50.50logger{50}:%-20.20method:%-4.4line [%mdc] %msg%n</pattern>-->
      <!-- small -->
      <pattern>%date{"ss,SSS"} %1level %-20.20logger{20}:%-4.4line %msg%n</pattern>
    </encoder>
  </appender>

  <logger name="org.apache.myfaces.tobago.example.demo" level="debug"/>

  <!-- Note: The DebugPhaseListener is not activated by default. -->
  <logger name="org.apache.myfaces.tobago.util.DebugPhaseListener" level="trace"/>

  <!-- Note: Enabled for showing session secret fails, might be useful to find nasty things. -->
  <logger name="org.apache.myfaces.tobago.lifecycle.SecretPhaseListener" level="debug"/>

  <root level="info">
    <appender-ref ref="console" />
  </root>
</configuration>
