X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-PAP-REST%2Fsrc%2Fmain%2Fresources%2Flogback.xml;h=3595b243223f5607b3050abed02111bf4dd3ccca;hb=457910274afc5f0b66705c0b38380219fb178f3a;hp=28dc956f31e5bd5b8164bd017686bc3ed3442a30;hpb=073cc188efe9abb4c010cf674e34e2cf46ef1c52;p=policy%2Fengine.git
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}