Skip to content

Commit

Permalink
DIS-228 Add stack traces to the default log4j configurations
Browse files Browse the repository at this point in the history
Test plan:
1) Create a new instance in your test aspen
2) Note the log4j config files include "%throwable" at the end of the
   pattern lines
  • Loading branch information
kylemhall committed Jan 15, 2025
1 parent 23d5c8a commit 5d7e234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sites/default/conf/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ appender.console.type = Console
appender.console.name = consoleLogger
appender.console.filter.threshold.type = ThresholdFilter
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%t] %-5p %d{MM/dd HH:mm:ss,SSS} - %m%n
appender.console.layout.pattern = [%t] %-5p %d{MM/dd HH:mm:ss,SSS} - %m%n%throwable

appender.rolling.type = RollingFile
appender.rolling.name = fileLogger
appender.rolling.fileName = /var/log/aspen-discovery/<<sitename>>/logs/<<processname>>.log
appender.rolling.filePattern = /var/log/aspen-discovery/<<sitename>>/logs/<<processname>>/%d{MM-dd-yy-HH-mm-ss}-%i.log.gz
appender.rolling.layout.type = PatternLayout
appender.rolling.layout.pattern = [%t] %-5p %d{MM/dd HH:mm:ss,SSS} - %m%n
appender.rolling.layout.pattern = [%t] %-5p %d{MM/dd HH:mm:ss,SSS} - %m%n%throwable
appender.rolling.policies.type = Policies
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=100MB
Expand All @@ -24,4 +24,4 @@ appender.rolling.filter.threshold.type = ThresholdFilter
rootLogger.level = info
rootLogger.additivity = false
rootLogger.appenderRef.rolling.ref = fileLogger
rootLogger.appenderRef.console.ref = consoleLogger
rootLogger.appenderRef.console.ref = consoleLogger

0 comments on commit 5d7e234

Please sign in to comment.