Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <!--
|
| 3 | ============LICENSE_START=======================================================
|
| 4 | ECOMP-PDP-REST
|
| 5 | ================================================================================
|
| 6 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
|
| 7 | ================================================================================
|
| 8 | Licensed under the Apache License, Version 2.0 (the "License");
|
| 9 | you may not use this file except in compliance with the License.
|
| 10 | You may obtain a copy of the License at
|
| 11 |
|
| 12 | http://www.apache.org/licenses/LICENSE-2.0
|
| 13 |
|
| 14 | Unless required by applicable law or agreed to in writing, software
|
| 15 | distributed under the License is distributed on an "AS IS" BASIS,
|
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 17 | See the License for the specific language governing permissions and
|
| 18 | limitations under the License.
|
| 19 | ============LICENSE_END=========================================================
|
| 20 | -->
|
| 21 | <configuration scan="true" scanPeriod="3 seconds" debug="true">
|
| 22 | <!--<jmxConfigurator /> -->
|
| 23 | <!-- specify the base path of the log directory -->
|
| 24 | <property name="logDir" value="/var/log/onap" />
|
| 25 | <!-- specify the component name -->
|
| 26 | <property name="componentName" value="policy" />
|
| 27 | <!-- specify the sub component name -->
|
| 28 | <property name="subComponentName" value="xacml-pdp-rest" />
|
| 29 | <!-- The directories where logs are written -->
|
| 30 | <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
|
| 31 | <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" />
|
| 32 | <!-- log file names -->
|
| 33 | <property name="errorLogName" value="error" />
|
| 34 | <property name="metricsLogName" value="metrics" />
|
| 35 | <property name="auditLogName" value="audit" />
|
| 36 | <property name="debugLogName" value="debug" />
|
| 37 | <property name="queueSize" value="256" />
|
| 38 | <property name="maxFileSize" value="50MB" />
|
| 39 | <property name="maxHistory" value="30" />
|
| 40 | <property name="totalSizeCap" value="10GB" />
|
| 41 | <!-- Example evaluator filter applied against console appender -->
|
| 42 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
| 43 | <encoder>
|
| 44 | <pattern>${pattern}</pattern>
|
| 45 | </encoder>
|
| 46 | </appender>
|
| 47 | <!-- ============================================================================ -->
|
| 48 | <!-- EELF Appenders -->
|
| 49 | <!-- ============================================================================ -->
|
| 50 | <!-- The EELFAppender is used to record events to the general application
|
| 51 | log -->
|
| 52 | <!-- EELF Audit Appender. This appender is used to record audit engine
|
| 53 | related logging events. The audit logger and appender are specializations
|
| 54 | of the EELF application root logger and appender. This can be used to segregate
|
| 55 | Policy engine events from other components, or it can be eliminated to record
|
| 56 | these events as part of the application root log. -->
|
| 57 | <appender name="EELFAudit" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 58 | <file>${logDirectory}/${auditLogName}.log</file>
|
| 59 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
| 60 | <fileNamePattern>${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
| 61 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
| 62 | <maxFileSize>${maxFileSize}</maxFileSize>
|
| 63 | </timeBasedFileNamingAndTriggeringPolicy>
|
| 64 | <maxHistory>${maxHistory}</maxHistory>
|
| 65 | <totalSizeCap>${totalSizeCap}</totalSizeCap>
|
| 66 | </rollingPolicy>
|
| 67 | <encoder>
|
| 68 | <pattern>${pattern}</pattern>
|
| 69 | </encoder>
|
| 70 | </appender>
|
| 71 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
|
| 72 | <queueSize>${queueSize}</queueSize>
|
| 73 | <appender-ref ref="EELFAudit" />
|
| 74 | </appender>
|
| 75 | <appender name="EELFMetrics" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 76 | <file>${logDirectory}/${metricsLogName}.log</file>
|
| 77 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
| 78 | <fileNamePattern>${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
| 79 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
| 80 | <maxFileSize>${maxFileSize}</maxFileSize>
|
| 81 | </timeBasedFileNamingAndTriggeringPolicy>
|
| 82 | <maxHistory>${maxHistory}</maxHistory>
|
| 83 | <totalSizeCap>${totalSizeCap}</totalSizeCap>
|
| 84 | </rollingPolicy>
|
| 85 | <encoder>
|
| 86 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
|
| 87 | %msg%n"</pattern> -->
|
| 88 | <pattern>${pattern}</pattern>
|
| 89 | </encoder>
|
| 90 | </appender>
|
| 91 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
|
| 92 | <queueSize>${queueSize}</queueSize>
|
| 93 | <appender-ref ref="EELFMetrics" />
|
| 94 | </appender>
|
| 95 | <appender name="EELFError" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 96 | <file>${logDirectory}/${errorLogName}.log</file>
|
| 97 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
| 98 | <fileNamePattern>${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
| 99 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
| 100 | <maxFileSize>${maxFileSize}</maxFileSize>
|
| 101 | </timeBasedFileNamingAndTriggeringPolicy>
|
| 102 | <maxHistory>${maxHistory}</maxHistory>
|
| 103 | <totalSizeCap>${totalSizeCap}</totalSizeCap>
|
| 104 | </rollingPolicy>
|
| 105 | <encoder>
|
| 106 | <pattern>${pattern}</pattern>
|
| 107 | </encoder>
|
| 108 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
| 109 | <level>INFO</level>
|
| 110 | </filter>
|
| 111 | </appender>
|
| 112 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
|
| 113 | <queueSize>${queueSize}</queueSize>
|
| 114 | <appender-ref ref="EELFError" />
|
| 115 | </appender>
|
| 116 | <appender name="EELFDebug" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 117 | <file>${logDirectory}/${debugLogName}.log</file>
|
| 118 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
| 119 | <fileNamePattern>${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
| 120 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
| 121 | <maxFileSize>${maxFileSize}</maxFileSize>
|
| 122 | </timeBasedFileNamingAndTriggeringPolicy>
|
| 123 | <maxHistory>${maxHistory}</maxHistory>
|
| 124 | <totalSizeCap>${totalSizeCap}</totalSizeCap>
|
| 125 | </rollingPolicy>
|
| 126 | <encoder>
|
| 127 | <pattern>${pattern}</pattern>
|
| 128 | </encoder>
|
| 129 | </appender>
|
| 130 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
|
| 131 | <queueSize>${queueSize}</queueSize>
|
| 132 | <appender-ref ref="EELFDebug" />
|
| 133 | <includeCallerData>true</includeCallerData>
|
| 134 | </appender>
|
| 135 | <!-- ============================================================================ -->
|
| 136 | <!-- EELF loggers -->
|
| 137 | <!-- ============================================================================ -->
|
| 138 | <logger name="com.att.eelf.audit" level="info" additivity="false">
|
| 139 | <appender-ref ref="asyncEELFAudit" />
|
| 140 | </logger>
|
| 141 | <logger name="com.att.eelf.metrics" level="info" additivity="false">
|
| 142 | <appender-ref ref="asyncEELFMetrics" />
|
| 143 | </logger>
|
| 144 | <logger name="com.att.eelf.error" level="info" additivity="false">
|
| 145 | <appender-ref ref="asyncEELFError" />
|
| 146 | </logger>
|
| 147 | <logger name="com.att.eelf.debug" level="debug" additivity="false">
|
| 148 | <appender-ref ref="asyncEELFDebug" />
|
| 149 | </logger>
|
| 150 | <root level="INFO">
|
| 151 | <appender-ref ref="asyncEELFDebug" />
|
| 152 | </root>
|
| 153 | </configuration> |