From 457910274afc5f0b66705c0b38380219fb178f3a Mon Sep 17 00:00:00 2001 From: rb7147 Date: Wed, 21 Feb 2018 10:40:47 -0500 Subject: 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 --- PolicyEngineAPI/src/main/resources/logback.xml | 76 ++++++++++++-------------- 1 file changed, 35 insertions(+), 41 deletions(-) (limited to 'PolicyEngineAPI/src') 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} -- cgit 1.2.3-korg