Merge pull request #487 from jbonofre/AMQ-7433

[AMQ-7433] Use short rendering of exception instead of full stack trace to avoid to pollute log file
This commit is contained in:
Jean-Baptiste Onofré 2020-03-01 18:04:16 +01:00 committed by GitHub
commit 609766f68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -48,8 +48,15 @@ log4j.appender.logfile.file=${activemq.data}/activemq.log
log4j.appender.logfile.maxFileSize=1024KB
log4j.appender.logfile.maxBackupIndex=5
log4j.appender.logfile.append=true
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n
log4j.appender.logfile.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n%throwable{short}
# now, by default, we only render exceptions in short (first line) to avoid to pollute log file
# if you want to render the full exception stack trace, you can use the following pattern
#
# log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n%throwable{full}
#
# use some of the following patterns to see MDC logging data
#
# %X{activemq.broker}