<?xml version="1.0" encoding="UTF-8"?>
<!-- http://logback.qos.ch/manual/configuration.html -->
<configuration scan="true" scanPeriod="30 seconds">
  <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>[%level] %c{1}: %m%n</pattern>
    </encoder>
  </appender>

  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>./log/xitrum.log</file>
    <encoder>
      <pattern>[%level] [%d{yy-MM-dd HH:mm:ss}] %c{1}: %m%n</pattern>
    </encoder>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>./log/xitrum.log.%d{yyyy-MM-dd-HH}</fileNamePattern>
    </rollingPolicy>
  </appender>

  <!-- Should be commented out for speed when running in production mode -->
  <logger name="xitrum" level="DEBUG"/>

  <root level="INFO">
    <!-- Should be commented out for speed when running in production mode -->
    <appender-ref ref="CONSOLE"/>

    <appender-ref ref="FILE"/>
  </root>
</configuration>

<?xml version="1.0" encoding="UTF-8"?>
<!-- http://logback.qos.ch/manual/configuration.html -->
<configuration scan="true" scanPeriod="30 seconds">
  <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>[%level] %c{1}: %m%n</pattern>
    </encoder>
  </appender>

  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>./log/xitrum.log</file>
    <encoder>
      <pattern>[%level] [%d{yy-MM-dd HH:mm:ss}] %c{1}: %m%n</pattern>
    </encoder>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>./log/xitrum.log.%d{yy-MM-dd-HH}</fileNamePattern>
    </rollingPolicy>
  </appender>

  <!-- Should be commented out for speed when running in production mode -->
  <logger name="xitrum" level="DEBUG"/>

  <root level="INFO">
    <!-- Should be commented out for speed when running in production mode -->
    <appender-ref ref="CONSOLE"/>

    <appender-ref ref="FILE"/>
  </root>
</configuration>

Change log file backup pattern
Change log file backup pattern
