aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/msb/charts/msb-eag/resources/config/log/logback.xml
blob: 33775962b7510518668c66e5a7703dbf23f236b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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{&amp;quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&amp;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>