diff options
author | ChrisC <cc697w@intl.att.com> | 2017-06-21 02:38:57 -0700 |
---|---|---|
committer | ChrisC <cc697w@intl.att.com> | 2017-06-21 02:58:20 -0700 |
commit | 5e9feb2a8e360b82dc2b6e4145e0fd847d2924ce (patch) | |
tree | 0c9e78d462252e5c41c977476c9dee26b1b0069b /src/main/resources/logback.xml | |
parent | 4d8ae6fe89a9ed6cd9a64c3276d2dc5a48bbcc34 (diff) |
[CLAMP-1] Initial ONAP CLAMP seed code commit
Change-Id: I2e8070a590618a06070f393d7b2c011029af5e8a
Signed-off-by: ChrisC <cc697w@intl.att.com>
Diffstat (limited to 'src/main/resources/logback.xml')
-rw-r--r-- | src/main/resources/logback.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 000000000..05149dc26 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,29 @@ +<configuration scan="true" scanPeriod="3 seconds" debug="false"> + + <statusListener class="ch.qos.logback.core.status.NopStatusListener"/> + + <property resource="application.properties"/> + + <property name="defaultPattern" + 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"/> + + <appender name="FILE" class="ch.qos.logback.core.FileAppender"> + <file>root.log</file> + <append>false</append> + <encoder> + <pattern>${defaultPattern}</pattern> + </encoder> + </appender> + + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>${defaultPattern}</pattern> + </encoder> + </appender> + + <root level="INFO"> + <appender-ref ref="STDOUT"/> + <appender-ref ref="FILE"/> + </root> + +</configuration> |