seb-server/src/main/resources/logback-spring.xml

63 lines
2.2 KiB
XML
Raw Normal View History

2019-02-26 09:42:53 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="false">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} %-5level [%thread]:[%logger] %msg%n</pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>log/sebserver.log</file>
2019-02-26 09:42:53 +01:00
<append>true</append>
<encoder>
<pattern>%d{HH:mm:ss.SSS} %-5level [%thread]:[%logger] %msg%n</pattern>
</encoder>
</appender>
<springProfile name="dev">
<root level="INFO" additivity="true">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
2019-02-26 09:42:53 +01:00
</root>
2019-05-16 17:17:08 +02:00
<Logger name="ch.ethz.seb.sebserver" level="DEBUG" additivity="true" />
<Logger name="org.apache.ibatis.datasource" level="TRACE" additivity="true" />
<Logger name="org.mybatis.generator" level="INFO" additivity="true" />
<Logger name="org.springframework.boot" level="INFO" additivity="true" />
<Logger name="org.springframework.security" level="INFO" additivity="true" />
2019-02-26 09:42:53 +01:00
<Logger name="org.springframework.web" level="INFO" additivity="true" />
<Logger name="org.springframework.security.oauth2" level="INFO" additivity="true" />
</springProfile>
<springProfile name="test">
<root level="INFO" additivity="true">
<appender-ref ref="STDOUT" />
</root>
2019-05-16 17:17:08 +02:00
<Logger name="ch.ethz.seb.sebserver" level="DEBUG" additivity="true" />
<Logger name="org.mybatis.generator" level="INFO" additivity="true" />
<Logger name="org.mybatis.generator" level="INFO" additivity="true" />
<Logger name="org.springframework.boot" level="INFO" additivity="true" />
<Logger name="org.springframework.security" level="INFO" additivity="true" />
<Logger name="org.springframework.web" level="INFO" additivity="true" />
<Logger name="org.springframework.security.oauth2" level="INFO" additivity="true" />
2019-02-26 09:42:53 +01:00
</springProfile>
<springProfile name="demo">
<root level="INFO" additivity="true">
<appender-ref ref="STDOUT" />
2019-07-04 13:58:10 +02:00
<appender-ref ref="FILE" />
2019-02-26 09:42:53 +01:00
</root>
</springProfile>
</configuration>