diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-04-10 19:50:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-10 19:50:06 +0000 |
commit | c3c89fbd196923b950474a2fa986d63c3db33d1c (patch) | |
tree | fb9d9d8a71aa49e19dc52d52632e7b0154bb6d5f /kubernetes/vfc/charts/vfc-nokia-vnfm-driver/resources/config/logging | |
parent | 468719508d61cbf1d16a5601bfc8db7c33f33b87 (diff) | |
parent | 6ba69cdbbbadc12cd1e14951e8209b383e2624d5 (diff) |
Merge "Standardized Config for VFC"
Diffstat (limited to 'kubernetes/vfc/charts/vfc-nokia-vnfm-driver/resources/config/logging')
-rw-r--r-- | kubernetes/vfc/charts/vfc-nokia-vnfm-driver/resources/config/logging/logback.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/kubernetes/vfc/charts/vfc-nokia-vnfm-driver/resources/config/logging/logback.xml b/kubernetes/vfc/charts/vfc-nokia-vnfm-driver/resources/config/logging/logback.xml new file mode 100644 index 0000000000..747c6b6551 --- /dev/null +++ b/kubernetes/vfc/charts/vfc-nokia-vnfm-driver/resources/config/logging/logback.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + <include resource="org/springframework/boot/logging/logback/defaults.xml"/> + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{35} - %msg %n</pattern> + <charset>UTF-8</charset> + </encoder> + </appender> + <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> + <file>/var/log/onap/vfc/svnfm/nokiavnfmdriver.log</file> + <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> + <fileNamePattern>/var/log/onap/vfc/svnfm/nokiavnfmdriver.%i.log.zip + </fileNamePattern> + <minIndex>1</minIndex> + <maxIndex>9</maxIndex> + </rollingPolicy> + <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> + <maxFileSize>10MB</maxFileSize> + </triggeringPolicy> + <encoder> + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %X{req.method} %X{req.remoteHost} %X{req.requestURI} [%t] %-5level %logger{50} %line - %m%n</pattern> + <charset>UTF-8</charset> + </encoder> + </appender> + <root level="INFO"> + <appender-ref ref="CONSOLE"></appender-ref> + <appender-ref ref="FILE"></appender-ref> + </root> +</configuration>
\ No newline at end of file |