Skip to content
Permalink
Browse files
Added sample configuration for trace log
  • Loading branch information
iuliana committed Jul 26, 2021
1 parent c3f5178 commit 73ab0d190ce90a0bbfefe626743484b72de3d84c
Showing 1 changed file with 17 additions and 0 deletions.
@@ -43,6 +43,11 @@ log4j2.rootLogger.appenderRef.BrooklynDebug.ref = BrooklynDebug
log4j2.rootLogger.appenderRef.BrooklynDebug.filter.threshold.type = ThresholdFilter
log4j2.rootLogger.appenderRef.BrooklynDebug.filter.threshold.level = DEBUG

## Brooklyn TRACE file log
#log4j2.rootLogger.appenderRef.BrooklynTrace.ref = BrooklynTrace
#log4j2.rootLogger.appenderRef.BrooklynTrace.filter.threshold.type = ThresholdFilter
#log4j2.rootLogger.appenderRef.BrooklynTrace.filter.threshold.level = TRACE

###################
# Appender Config #
###################
@@ -82,6 +87,18 @@ log4j2.appender.rolling_debug.policies.type = Policies
log4j2.appender.rolling_debug.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.rolling_debug.policies.size.size = 16MB

## Brooklyn TRACE appender
# log4j2.appender.rolling_trace.type = RollingRandomAccessFile
# log4j2.appender.rolling_trace.name = BrooklynTrace
# log4j2.appender.rolling_trace.fileName = ${karaf.data}/log/brooklyn.trace.log
# log4j2.appender.rolling_trace.filePattern = ${karaf.data}/log/brooklyn.trace.log.%i
# log4j2.appender.rolling_trace.append = true
# log4j2.appender.rolling_trace.layout.type = PatternLayout
# log4j2.appender.rolling_trace.layout.pattern = ${log4j2.pattern}
# log4j2.appender.rolling_trace.policies.type = Policies
# log4j2.appender.rolling_trace.policies.size.type = SizeBasedTriggeringPolicy
# log4j2.appender.rolling_trace.policies.size.size = 16MB

## Audit log appender
log4j2.appender.audit.type = RollingRandomAccessFile
log4j2.appender.audit.name = AuditRollingFile

0 comments on commit 73ab0d1

Please sign in to comment.