You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
902 B
26 lines
902 B
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration scan="true">
|
|
<appender name="STDOUT"
|
|
class="ch.qos.logback.core.ConsoleAppender">
|
|
<encoder>
|
|
<pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
<appender name="FILE"
|
|
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>logs/server.log</file>
|
|
<rollingPolicy
|
|
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>logs/server.%d{yyyy-MM-dd}.log.gz</fileNamePattern>
|
|
<maxHistory>3</maxHistory>
|
|
<totalSizeCap>300MB</totalSizeCap>
|
|
</rollingPolicy>
|
|
<encoder>
|
|
<pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
<logger name="com.example.camel" level="DEBUG" />
|
|
<root level="INFO">
|
|
<appender-ref ref="STDOUT" />
|
|
</root>
|
|
</configuration> |