seb-server/src/main/resources/logback-spring.xml
2023-11-09 15:51:29 +01:00

56 lines
No EOL
1.6 KiB
XML

<?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>
<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" />
</root>
<Logger name="ch.ethz.seb.SEB_SERVER_INIT" level="INFO" additivity="false">
<appender-ref ref="STDOUT" />
</Logger>
</springProfile>
<springProfile name="test">
<root level="WARN" additivity="true">
<appender-ref ref="STDOUT" />
</root>
</springProfile>
<springProfile name="demo">
<root level="INFO" additivity="true">
<appender-ref ref="STDOUT" />
</root>
<Logger name="ch.ethz.seb.sebserver.webservice.servicelayer.sebconfig.impl.SebClientConfigServiceImpl" level="DEBUG" additivity="true" />
</springProfile>
<springProfile name="prod">
<Logger name="ch.ethz.seb" level="WARN" additivity="true">
<appender-ref ref="STDOUT" />
</Logger>
<Logger name="ch.ethz.seb.SEB_SERVER_INIT" level="INFO" additivity="false">
<appender-ref ref="STDOUT" />
</Logger>
</springProfile>
</configuration>