Skip to content

Commit

Permalink
Fix: Double Log Output (#102)
Browse files Browse the repository at this point in the history
* set log4j2 additivity to false

* update log4j2 properties
  • Loading branch information
voxparcxls authored May 27, 2022
1 parent 36ba06a commit 17638d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cws-installer/src/main/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# 'status' refers to log messages from Log4j2 itself
status = warn


# console appender
appender.console.type = Console
appender.console.name = STDOUT
Expand All @@ -24,21 +25,25 @@ appender.console.layout.pattern = INSTALLER: %d{ISO8601}{UTC} %-5p [%20.20t] %30
# Spring Framework
logger.springframework.name = org.springframework
logger.springframework.level = info
logger.springframework.additivity = false
logger.springframework.appenderRef.stdout.ref = STDOUT

# CWS
logger.cws.name = jpl.cws
logger.cws.level = info
logger.cws.additivity = false
logger.cws.appenderRef.stdout.ref = STDOUT

# Javax
logger.javax.name = javax.activation.level
logger.javax.level = info
logger.javax.additivity = false
logger.javax.appenderRef.stdout.ref = STDOUT

# ActiveMQ
logger.activemq.name = org.apache.activemq.transport
logger.activemq.level = info
logger.activemq.additivity = false
logger.activemq.appenderRef.stdout.ref = STDOUT

# ROOT
Expand Down
6 changes: 6 additions & 0 deletions install/tomcat_lib/log4j2-tomcat.properties
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,37 @@ appender.rolling.strategy.fileIndex = nomax
# Camunda
logger.camunda.name = org.camunda
logger.camunda.level = info
logger.camunda.additivity = false
logger.camunda.appenderRef.stdout.ref = RollingFile

# Camunda Engine
logger.camundaEngine.name = org.camunda.bpmn.engine
logger.camundaEngine.level = warn
logger.camundaEngine.additivity = false
logger.camundaEngine.appenderRef.stdout.ref = RollingFile

# Spring Framework
logger.springframework.name = org.springframework
logger.springframework.level = info
logger.springframework.additivity = false
logger.springframework.appenderRef.stdout.ref = RollingFile

# CWS
logger.cws.name = jpl.cws
logger.cws.level = debug
logger.cws.additivity = false
logger.cws.appenderRef.stdout.ref = RollingFile

# Javax
logger.javax.name = javax.activation.level
logger.javax.level = info
logger.javax.additivity = false
logger.javax.appenderRef.stdout.ref = RollingFile

# ActiveMQ
logger.activemq.name = org.apache.activemq.transport
logger.activemq.level = info
logger.activemq.additivity = false
logger.activemq.appenderRef.stdout.ref = RollingFile

# ROOT
Expand Down

0 comments on commit 17638d8

Please sign in to comment.