diff options
author | Marcus G K Williams <marcus.williams@intel.com> | 2017-11-21 14:44:43 -0800 |
---|---|---|
committer | Marcus G K Williams <marcus.williams@intel.com> | 2017-11-21 14:44:56 -0800 |
commit | f5ccf9c19fb2ba7ff8ed50aedc4a9bb15d3afa88 (patch) | |
tree | 51f689359612716c3d092805779cbe65bd39fc99 /odlsli/src/main/resources/org.ops4j.pax.logging.cfg | |
parent | f77561cb74548f172ebfb4bf4cdae17fa103eb63 (diff) |
Fix org.ops4j.pax.logging.cfg logging config
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>
Diffstat (limited to 'odlsli/src/main/resources/org.ops4j.pax.logging.cfg')
-rw-r--r-- | odlsli/src/main/resources/org.ops4j.pax.logging.cfg | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/odlsli/src/main/resources/org.ops4j.pax.logging.cfg b/odlsli/src/main/resources/org.ops4j.pax.logging.cfg index 7a575e4a..359ce5dd 100644 --- a/odlsli/src/main/resources/org.ops4j.pax.logging.cfg +++ b/odlsli/src/main/resources/org.ops4j.pax.logging.cfg @@ -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 |