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

<configuration>
  <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
    <layout class="ch.qos.logback.classic.PatternLayout">
      <Pattern>%d [%t] %-5p [%c] - %m%n</Pattern>
    </layout>
  </appender>
  <appender name="logfile" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <File>logs/word.log</File>
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">  
      <FileNamePattern>logs/word_%i.log</FileNamePattern>
      <MinIndex>1</MinIndex>  
      <MaxIndex>10000</MaxIndex>
    </rollingPolicy>  
    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">  
      <MaxFileSize>5MB</MaxFileSize> 
    </triggeringPolicy> 
    <layout class="ch.qos.logback.classic.PatternLayout">
      <Pattern>%d [%t] %-5p [%c] - %m%n</Pattern>j
    </layout>
  </appender>
  <root level="INFO">
    <appender-ref ref="logfile"/>
    <appender-ref ref="stdout"/>
  </root>
</configuration>
