From: rb7147 Date: Wed, 21 Feb 2018 15:40:47 +0000 (-0500) Subject: Updated the Policy Logging Pattern X-Git-Tag: v1.2.0~123 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=commitdiff_plain;h=457910274afc5f0b66705c0b38380219fb178f3a Updated the Policy Logging Pattern Updated the logback.xml to save logs for 30 days. Issue-ID: POLICY-644 Change-Id: I578570fa5a7f86ba464c37cddab43a2fabcdae7f Signed-off-by: rb7147 --- diff --git a/BRMSGateway/src/main/resources/logback.xml b/BRMSGateway/src/main/resources/logback.xml index 3fa0a65c4..c01117ba7 100644 --- a/BRMSGateway/src/main/resources/logback.xml +++ b/BRMSGateway/src/main/resources/logback.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= ONAP Policy Engine ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + 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. @@ -113,16 +113,15 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${auditLogName}.log - ${logDirectory}/${auditLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - + ${defaultAuditPattern} @@ -140,19 +139,16 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${metricsLogName}.log - ${logDirectory}/${metricsLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - + - ${defaultMetricPattern} @@ -169,19 +165,18 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${errorLogName}.log - ${logDirectory}/${errorLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB ERROR - - 5MB - + ${defaultErrorPattern} @@ -198,19 +193,18 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${debugLogDirectory}/${debugLogName}.log - ${debugLogDirectory}/${debugLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${debugLogDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB DEBUG - - 5MB - + ${debugLoggerPattern} diff --git a/ONAP-PAP-REST/src/main/resources/logback.xml b/ONAP-PAP-REST/src/main/resources/logback.xml index 28dc956f3..3595b2432 100644 --- a/ONAP-PAP-REST/src/main/resources/logback.xml +++ b/ONAP-PAP-REST/src/main/resources/logback.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= ONAP-PAP-REST ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + 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. @@ -114,16 +114,14 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${auditLogName}.log - ${logDirectory}/${auditLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - ${defaultAuditPattern} @@ -141,19 +139,15 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${metricsLogName}.log - ${logDirectory}/${metricsLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - - ${defaultMetricPattern} @@ -170,19 +164,17 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${errorLogName}.log - ${logDirectory}/${errorLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB ERROR - - - 5MB - + ${defaultErrorPattern} @@ -199,19 +191,17 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${debugLogDirectory}/${debugLogName}.log - ${debugLogDirectory}/${debugLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${debugLogDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB DEBUG - - - 5MB - + ${debugLoggerPattern} diff --git a/ONAP-PDP-REST/src/main/resources/logback.xml b/ONAP-PDP-REST/src/main/resources/logback.xml index 70e9f90c7..677b0d0d7 100644 --- a/ONAP-PDP-REST/src/main/resources/logback.xml +++ b/ONAP-PDP-REST/src/main/resources/logback.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= ONAP-PDP-REST ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + 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. @@ -113,16 +113,15 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${auditLogName}.log - ${logDirectory}/${auditLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - + ${defaultAuditPattern} @@ -140,19 +139,16 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${metricsLogName}.log - ${logDirectory}/${metricsLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - + - ${defaultMetricPattern} @@ -169,19 +165,17 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${errorLogName}.log - ${logDirectory}/${errorLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB ERROR - - - 5MB - + ${defaultErrorPattern} @@ -198,19 +192,18 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${debugLogDirectory}/${debugLogName}.log - ${debugLogDirectory}/${debugLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${debugLogDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB DEBUG - - 5MB - + ${debugLoggerPattern} diff --git a/ONAP-SDK-APP/src/main/resources/logback.xml b/ONAP-SDK-APP/src/main/resources/logback.xml index 42535510b..d19b1ba5a 100644 --- a/ONAP-SDK-APP/src/main/resources/logback.xml +++ b/ONAP-SDK-APP/src/main/resources/logback.xml @@ -3,7 +3,7 @@ ================================================================================ ONAP Portal SDK ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property + Copyright (C) 2017-2018 AT&T Intellectual Property ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -87,13 +87,14 @@ ${logDirectory}/${generalLogName}.log - + - ${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.log.zip + ${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.%i.log.zip - 30 - 3GB + 50MB + 30 + 10GB @@ -108,127 +109,6 @@ true - - - - - - - - - - - - - - ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.log.zip + ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip - 30 - 3GB + 50MB + 30 + 10GB @@ -259,13 +140,14 @@ ${logDirectory}/${metricsLogName}.log - + - ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.log.zip + ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip - 30 - 3GB + 50MB + 30 + 10GB @@ -282,13 +164,14 @@ ${logDirectory}/${errorLogName}.log - + - ${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.log.zip + ${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip - 30 - 3GB + 50MB + 30 + 10GB @@ -304,13 +187,14 @@ ${debugLogDirectory}/${debugLogName}.log - + - ${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.log.zip + ${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip - 30 - 3GB + 50MB + 30 + 10GB diff --git a/PolicyEngineAPI/src/main/resources/logback.xml b/PolicyEngineAPI/src/main/resources/logback.xml index 9f725493e..347466bcc 100644 --- a/PolicyEngineAPI/src/main/resources/logback.xml +++ b/PolicyEngineAPI/src/main/resources/logback.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= PolicyEngineAPI ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + 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. @@ -113,16 +113,15 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${auditLogName}.log - ${logDirectory}/${auditLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - + ${defaultAuditPattern} @@ -140,19 +139,16 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${metricsLogName}.log - ${logDirectory}/${metricsLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB - - 5MB - + - ${defaultMetricPattern} @@ -169,19 +165,18 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${logDirectory}/${errorLogName}.log - ${logDirectory}/${errorLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB ERROR - - - 5MB - + + ${defaultErrorPattern} @@ -198,19 +193,18 @@ class="ch.qos.logback.core.rolling.RollingFileAppender"> ${debugLogDirectory}/${debugLogName}.log - ${debugLogDirectory}/${debugLogName}.%i.log.zip - - 1 - 9 + class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> + ${debugLogDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip + + + 50MB + 30 + 10GB DEBUG - - - 5MB - + + ${debugLoggerPattern}