diff options
Diffstat (limited to 'etc/log4j.xml')
-rw-r--r-- | etc/log4j.xml | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/etc/log4j.xml b/etc/log4j.xml index ef186761..460004c6 100644 --- a/etc/log4j.xml +++ b/etc/log4j.xml @@ -1,23 +1,33 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> +<!-- +================================================================================ +Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. +================================================================================ +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. +============LICENSE_END========================================================= + +ECOMP is a trademark and service mark of AT&T Intellectual Property. +--> + + <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> <param name="threshold" value="INFO" /> <layout class="org.apache.log4j.PatternLayout"> - <param name="ConversionPattern" value="[%d{ABSOLUTE}][%-5p][%-10t]%m%n" /> - </layout> - </appender> - - <appender name="FILE" class="org.apache.log4j.RollingFileAppender"> - <param name="threshold" value="INFO" /> - <param name="File" value="logs/collector.log" /> - <param name="MaxFileSize" value="32MB"/> - <param name="MaxBackupIndex" value="20"/> - <layout class="org.apache.log4j.PatternLayout"> - <!-- param name="ConversionPattern" value="[%d{ABSOLUTE}][%-5p][%-10t][%-5c][%4L]%m%n" / --> - <param name="ConversionPattern" value="[%d{ISO8601}][%-5p][%-10t][%-5c]%m%n" /> + <param name="ConversionPattern" value="[%d{ISO8601}][%-5p][%-10t][%c] - %m%n"/> </layout> </appender> @@ -27,7 +37,6 @@ <param name="MaxFileSize" value="32MB"/> <param name="MaxBackupIndex" value="10"/> <layout class="org.apache.log4j.PatternLayout"> - <!-- param name="ConversionPattern" value="[%d{ABSOLUTE}][%-5p][%-10t][%-5c][%4L]%m%n" / --> <param name="ConversionPattern" value="[%d{ISO8601}][%-5p][%-10t][%-5c]%m%n" /> </layout> </appender> @@ -38,33 +47,30 @@ <param name="MaxFileSize" value="32MB"/> <param name="MaxBackupIndex" value="10"/> <layout class="org.apache.log4j.PatternLayout"> - <!-- param name="ConversionPattern" value="[%d{ABSOLUTE}][%-5p][%-10t][%-5c][%4L]%m%n" / --> <param name="ConversionPattern" value="[%d{ISO8601}][%-5p][%-10t][%-5c]%m%n" /> </layout> </appender> - + <appender name="EFILE" class="org.apache.log4j.RollingFileAppender"> <param name="threshold" value="INFO" /> <param name="File" value="logs/error.log" /> <param name="MaxFileSize" value="32MB"/> <param name="MaxBackupIndex" value="5"/> <layout class="org.apache.log4j.PatternLayout"> - <!-- param name="ConversionPattern" value="[%d{ABSOLUTE}][%-5p][%-10t][%-5c][%4L]%m%n" / --> <param name="ConversionPattern" value="[%d{ISO8601}][%-5p][%-10t][%-5c]%m%n" /> </layout> </appender> - + <!-- ECOMP logging setup - + NOTES: - + 1. files are written to "./logs/<filename>". You must setup the environment so that ./logs is a symlink to the correct location according to the ECOMP log standard. For example, "/opt/logs/DCAE/highlandParkVcScope". If that's not possible, change the File setting in each appender appropriately. --> - <appender name="ECOMP_AUDIT" class="org.apache.log4j.RollingFileAppender"> <param name="threshold" value="DEBUG" /> <param name="File" value="./logs/ecomp/audit.log" /> @@ -144,25 +150,20 @@ <logger name="org.onap.dcae.commonFunction.EventPublisher" additivity="false"> <level value="debug"/> <appender-ref ref="CONSOLE" /> - <appender-ref ref="FILE" /> </logger> - <logger name="com.att.nsa.apiClient.http.HttpClient" additivity="false"> <level value="info"/> - <appender-ref ref="FILE" /> <appender-ref ref="CONSOLE" /> </logger> <logger name="com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher" additivity="false"> <level value="info"/> - <appender-ref ref="FILE" /> <appender-ref ref="CONSOLE" /> </logger> <root> <level value="DEBUG" /> - <appender-ref ref="FILE" /> <appender-ref ref="CONSOLE" /> <appender-ref ref="ECOMP_AUDIT" /> <appender-ref ref="ECOMP_DEBUG" /> |