diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-12-01 19:22:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-12-01 19:22:00 +0000 |
commit | 21987c99e3e2b39f2fb6f8cfd9a9e63ad405656c (patch) | |
tree | 6a587ce488a1086f212ef87156b384a36c598eac /kubernetes/msb/components/msb-eag/resources/config/log/logback.xml | |
parent | 5b198c2a35b9156cbd9f927cb206da865d308a91 (diff) | |
parent | fd2f8b8d029ea7e83da16d40cd023cebe4b2f75e (diff) |
Merge "[MSB] Uses new tpls for repos / images"
Diffstat (limited to 'kubernetes/msb/components/msb-eag/resources/config/log/logback.xml')
-rw-r--r-- | kubernetes/msb/components/msb-eag/resources/config/log/logback.xml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/kubernetes/msb/components/msb-eag/resources/config/log/logback.xml b/kubernetes/msb/components/msb-eag/resources/config/log/logback.xml new file mode 100644 index 0000000000..680cb7357a --- /dev/null +++ b/kubernetes/msb/components/msb-eag/resources/config/log/logback.xml @@ -0,0 +1,40 @@ +<!--# Copyright © 2017 Amdocs, Bell Canada +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. --> +<?xml version="1.0" encoding="UTF-8"?> +<configuration debug="true" scan="true" scanPeriod="3 seconds"> + <!--<jmxConfigurator /> --> + <!-- specify the base path of the log directory --> + <property name="logDir" value="/var/log/onap" /> + <!-- specify the component name --> + <property name="componentName" value="msb" /> + <!-- specify the sub component name --> + <property name="subComponentName" value="discovery" /> + <!-- The directories where logs are written --> + <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" /> + <property name="pattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}\t[%thread]\t%-5level\t%logger{36}\t%replace(%replace(%replace(%mdc){'\t','\\\\t'}){', ','\t'}){'\n', '\\\\n'}\t%replace(%replace(%msg){'\n', '\\\\n'}){'\t','\\\\t'}%n" /> + <!-- log file names --> + <property name="errorLogName" value="error" /> + <property name="metricsLogName" value="metrics" /> + <property name="auditLogName" value="audit" /> + <property name="debugLogName" value="debug" /> + <property name="queueSize" value="256" /> + <property name="maxFileSize" value="50MB" /> + <property name="maxHistory" value="30" /> + <property name="totalSizeCap" value="10GB" /> + <!-- Example evaluator filter applied against console appender --> + <appender class="ch.qos.logback.core.ConsoleAppender" name="STDOUT"> + <encoder> + <pattern>${pattern}</pattern> + </encoder> + </appender> |