diff options
author | Vidya Shinde <vidya.shinde@amdocs.com> | 2017-09-22 21:03:43 +0530 |
---|---|---|
committer | Vidya Shinde <vidya.shinde@amdocs.com> | 2017-09-22 21:03:43 +0530 |
commit | 65f9feec471b1180b7e0d466ce198290a62fc07d (patch) | |
tree | 757a42cd0b21fb1a66eebcacf79216e973b773fc /onap/aai/model-loader/conf/logback.xml | |
parent | aa41076737c6f58f524d10c806904889ddc606d1 (diff) |
[LOG] Add canonicalization for AAI logs
Canonicalization of path for log provider configuration file and log files for new AAI components
Change-Id: I34611392f25cfcd0e7e180ef672f64d7dd20928a
Issue-ID: LOG-63
Signed-off-by: Vidya Shinde <vidya.shinde@amdocs.com>
Diffstat (limited to 'onap/aai/model-loader/conf/logback.xml')
-rw-r--r-- | onap/aai/model-loader/conf/logback.xml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/onap/aai/model-loader/conf/logback.xml b/onap/aai/model-loader/conf/logback.xml index 3443688..d512d3b 100644 --- a/onap/aai/model-loader/conf/logback.xml +++ b/onap/aai/model-loader/conf/logback.xml @@ -2,12 +2,10 @@ <!--<jmxConfigurator /> --> <!-- directory path for all other type logs --> <property name="logDir" value="/var/log/onap" /> - <!-- specify the component name <ECOMP-component-name>::= "MSO" | "DCAE" - | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" --> <property name="componentName" value="aai"></property> <property name="subComponentName" value="aai-ml"></property> <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" /> - <!-- default eelf log file names --> + <!-- default eelf log file names --> <property name="generalLogName" value="error" /> <property name="metricsLogName" value="metrics" /> <property name="auditLogName" value="audit" /> @@ -16,7 +14,7 @@ <property name="maxFileSize" value="50MB" /> <property name="maxHistory" value="30" /> <property name="totalSizeCap" value="10GB" /> - <property name="pattern" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", 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" /> + <property name="pattern" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}\t[%thread]\t%-5level\t%logger\t%replace(%replace(%replace(%mdc){'\t','\\\\t'}){', ','\t'}){'\n', '\\\\n'}\t%replace(%replace(%msg){'\n', '\\\\n'}){'\t','\\\\t'}%n" /> <!-- Example evaluator filter applied against console appender --> <appender class="ch.qos.logback.core.ConsoleAppender" name="STDOUT"> <encoder> @@ -47,7 +45,7 @@ <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>INFO</level> </filter> - <queueSize>256</queueSize> + <queueSize>${queueSize}</queueSize> <appender-ref ref="EELF" /> </appender> <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EELFAudit"> @@ -65,7 +63,7 @@ </encoder> </appender> <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncEELFAudit"> - <queueSize>256</queueSize> + <queueSize>${queueSize}</queueSize> <appender-ref ref="EELFAudit" /> </appender> <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EELFMetrics"> @@ -83,7 +81,7 @@ </encoder> </appender> <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncEELFMetrics"> - <queueSize>256</queueSize> + <queueSize>${queueSize}</queueSize> <appender-ref ref="EELFMetrics" /> </appender> <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="EELFDebug"> @@ -101,7 +99,7 @@ </encoder> </appender> <appender class="ch.qos.logback.classic.AsyncAppender" name="asyncEELFDebug"> - <queueSize>256</queueSize> + <queueSize>${queueSize}</queueSize> <appender-ref ref="EELFDebug" /> <includeCallerData>true</includeCallerData> </appender> @@ -161,4 +159,3 @@ <!-- <appender-ref ref="asyncEELFDebug" /> --> </root> </configuration> - |