Skip to content

Commit

Permalink
Add log4j into docker image (#174)
Browse files Browse the repository at this point in the history
Type: Improvement

Signed-off-by: jmasar <[email protected]>
Co-authored-by: jmasar <[email protected]>
  • Loading branch information
JumasJM and jmasar authored Jun 27, 2024
1 parent 721a399 commit 9f1480c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker/server/config/log4j-cluster.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name = Metrics
status = warn

appenders=rolling,console

appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{ISO8601} %5p [%t] (%C) - %m%n

appender.rolling.type = RollingFile
appender.rolling.name = RollingFile
appender.rolling.fileName = /app/logs/metrics.log
appender.rolling.filePattern = /app/logs/metrics.log.%i
appender.rolling.policies.type = Policies
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=2MB
appender.rolling.strategy.type = DefaultRolloverStrategy
appender.rolling.strategy.max = 5
appender.rolling.layout.type = PatternLayout
appender.rolling.layout.pattern = conductor %replace{%replace{%msg}{=}{="}}{, }{",}"%n
logger.rolling.name = ConductorMetrics
logger.rolling.level = info
logger.rolling.additivity = false
logger.rolling.appenderRef.rolling.ref = RollingFile
rootLogger.level = info
rootLogger.appenderRef.stdout.ref = STDOUT

0 comments on commit 9f1480c

Please sign in to comment.