Fix org.ops4j.pax.logging.cfg logging config 05/24805/1
authorMarcus G K Williams <marcus.williams@intel.com>
Tue, 21 Nov 2017 22:44:43 +0000 (14:44 -0800)
committerMarcus G K Williams <marcus.williams@intel.com>
Tue, 21 Nov 2017 22:44:56 +0000 (14:44 -0800)
Update karaf logging config to keep logs
from filling the disk by limiting DG logging
file number and size.

Issue-ID: SDNC-204 SDNC-203
Change-Id: I325357ed2c22018f1298faff0da1bedb40ab16ae
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
odlsli/src/main/resources/org.ops4j.pax.logging.cfg

index 7a575e4..359ce5d 100644 (file)
@@ -14,7 +14,7 @@ log4j.appender.async.appenders=out
 # File appender
 log4j.appender.out=org.apache.log4j.RollingFileAppender
 log4j.appender.out.layout=org.apache.log4j.PatternLayout
-log4j.appender.out.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
+log4j.appender.out.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} - %X{currentGraph} - %X{nodeId} | %m%n
 log4j.appender.out.file=${karaf.data}/log/karaf.log
 log4j.appender.out.append=true
 log4j.appender.out.maxFileSize=1MB
@@ -23,22 +23,26 @@ log4j.appender.out.maxBackupIndex=10
 # Directed Graph Node Id appender
 log4j.appender.directed-graph-node-id=org.apache.log4j.sift.MDCSiftingAppender
 log4j.appender.directed-graph-node-id.key=nodeId
-log4j.appender.directed-graph-node-id.default=unknown
+log4j.appender.directed-graph-node-id.default=directedGraphNode
 log4j.appender.directed-graph-node-id.appender=org.apache.log4j.FileAppender
 log4j.appender.directed-graph-node-id.appender.layout=org.apache.log4j.PatternLayout
 log4j.appender.directed-graph-node-id.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %X{nodeId} | %m%n
 log4j.appender.directed-graph-node-id.appender.file=${karaf.data}/log/$\\{nodeId\\}.log
 log4j.appender.directed-graph-node-id.appender.append=true
+log4j.appender.directed-graph-node-id.maxFileSize=1MB
+log4j.appender.directed-graph-node-id.maxBackupIndex=5
 
 # Directed Graph Name appender
 log4j.appender.directed-graph=org.apache.log4j.sift.MDCSiftingAppender
 log4j.appender.directed-graph.key=currentGraph
-log4j.appender.directed-graph.default=unknown
+log4j.appender.directed-graph.default=directedGraph
 log4j.appender.directed-graph.appender=org.apache.log4j.FileAppender
 log4j.appender.directed-graph.appender.layout=org.apache.log4j.PatternLayout
-log4j.appender.directed-graph.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %X{currentGraph} | %m%n
+log4j.appender.directed-graph.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %X{currentGraph} | %X{nodeId} | %m%n
 log4j.appender.directed-graph.appender.file=${karaf.data}/log/$\\{currentGraph\\}.log
 log4j.appender.directed-graph.appender.append=true
+log4j.appender.directed-graph.maxFileSize=1MB
+log4j.appender.directed-graph.maxBackupIndex=5
 
 # Sift appender
 log4j.appender.sift=org.apache.log4j.sift.MDCSiftingAppender

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use