blob: 05149dc26e908ad64a2e796a9a18c10fe08a9a23 [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<configuration scan="true" scanPeriod="3 seconds" debug="false">
2
3 <statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
4
5 <property resource="application.properties"/>
6
7 <property name="defaultPattern"
8 value="%d{yyyy-MM-dd HH:mm:ss.SSS} $ threadId: {PID:- } %-5level namespace:${namespace} %logger{20} [ hostname: %X{hostname} serviceName: %X{serviceName} version: %X{version} transactionId: %X{transactionId} requestTimeStamp: %X{requestTimestamp} responseTimeStamp: %X{responseTimestamp} duration: %X{duration}] %m%n"/>
9
10 <appender name="FILE" class="ch.qos.logback.core.FileAppender">
11 <file>root.log</file>
12 <append>false</append>
13 <encoder>
14 <pattern>${defaultPattern}</pattern>
15 </encoder>
16 </appender>
17
18 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
19 <encoder>
20 <pattern>${defaultPattern}</pattern>
21 </encoder>
22 </appender>
23
24 <root level="INFO">
25 <appender-ref ref="STDOUT"/>
26 <appender-ref ref="FILE"/>
27 </root>
28
29</configuration>