ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1 | <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> |