Использую
compile('ch.qos.logback:logback-classic')
compile('org.slf4j:slf4j-api')
compile('org.apache.commons:commons-lang3')
логгер настроен так (файл logback.xml)
<?xml version="1.0" encoding="UTF-8" ?>
<configuration scan="true" scanPeriod="3 seconds">
<contextName>VoidForum</contextName>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{32} - %msg%n
</pattern>
</encoder>
</appender>
<jmxConfigurator />
<root level="WARN">
<appender-ref ref="STDOUT" />
</root>
<logger name="ru.bvn13.voidforum" level="ALL">
<appender-ref ref="STDOUT" />
</logger>
<logger name="org.hibernate.SQL" level="WARN">
<appender-ref ref="STDOUT" />
</logger>
<!--<logger name="org.hibernate.type" level="TRACE">-->
<!--<appender-ref ref="STDOUT" />-->
<!--</logger>-->
<logger name="org.springframework.web" level="DEBUG">
<appender-ref ref="STDOUT" />
</logger>
<logger name="ru.bvn13.voidforum.controllers" level="DEBUG">
<appender-ref ref="STDOUT" />
</logger>
<logger name="ru.bvn13.voidforum.admin.controllers" level="DEBUG">
<appender-ref ref="STDOUT" />
</logger>
</configuration>
При этом каждая строчка вывода лога задваивается. Например:
2017-12-11 22:42:15.507 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'servletConfigInitParams' with lowest search precedence
2017-12-11 22:42:15.507 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'servletConfigInitParams' with lowest search precedence
2017-12-11 22:42:15.511 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'servletContextInitParams' with lowest search precedence
2017-12-11 22:42:15.511 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'servletContextInitParams' with lowest search precedence
2017-12-11 22:42:15.512 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'systemProperties' with lowest search precedence
2017-12-11 22:42:15.512 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'systemProperties' with lowest search precedence
2017-12-11 22:42:15.512 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'systemEnvironment' with lowest search precedence
2017-12-11 22:42:15.512 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding PropertySource 'systemEnvironment' with lowest search precedence
2017-12-11 22:42:15.512 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Initialized StandardServletEnvironment with PropertySources [StubPropertySource {name='servletConfigInitParams'}, StubPropertySource {name='servletContextInitParams'}, MapPropertySource {name='systemProperties'}, SystemEnvironmentPropertySource {name='systemEnvironment'}]
2017-12-11 22:42:15.512 [main] DEBUG o.s.w.c.s.StandardServletEnvironment - Initialized StandardServletEnvironment with PropertySources [StubPropertySource {name='servletConfigInitParams'}, StubPropertySource {name='servletContextInitParams'}, MapPropertySource {name='systemProperties'}, SystemEnvironmentPropertySource {name='systemEnvironment'}]
2017-12-11 22:42:15.593 [main] INFO ru.bvn13.voidforum.Application - Starting Application on bvn13-book with PID 20504 (C:\dev\my\VoidForum\out\production\classes started by bvn13 in C:\dev\my\VoidForum)
2017-12-11 22:42:15.593 [main] INFO ru.bvn13.voidforum.Application - Starting Application on bvn13-book with PID 20504 (C:\dev\my\VoidForum\out\production\classes started by bvn13 in C:\dev\my\VoidForum)
2017-12-11 22:42:15.594 [main] DEBUG ru.bvn13.voidforum.Application - Running with Spring Boot v1.5.10.BUILD-SNAPSHOT, Spring v4.3.13.RELEASE
2017-12-11 22:42:15.594 [main] DEBUG ru.bvn13.voidforum.Application - Running with Spring Boot v1.5.10.BUILD-SNAPSHOT, Spring v4.3.13.RELEASE
Где напортачил? Почему так происходит?