mirror of https://github.com/apache/activemq.git
[AMQ-7433] Use short rendering of exception instead of full stack trace to avoid to pollute log file
This commit is contained in:
parent
c92be4c8cb
commit
c9902433c7
|
@ -48,8 +48,15 @@ log4j.appender.logfile.file=${activemq.data}/activemq.log
|
||||||
log4j.appender.logfile.maxFileSize=1024KB
|
log4j.appender.logfile.maxFileSize=1024KB
|
||||||
log4j.appender.logfile.maxBackupIndex=5
|
log4j.appender.logfile.maxBackupIndex=5
|
||||||
log4j.appender.logfile.append=true
|
log4j.appender.logfile.append=true
|
||||||
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
log4j.appender.logfile.layout=org.apache.log4j.EnhancedPatternLayout
|
||||||
log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n
|
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
|
# use some of the following patterns to see MDC logging data
|
||||||
#
|
#
|
||||||
# %X{activemq.broker}
|
# %X{activemq.broker}
|
||||||
|
|
Loading…
Reference in New Issue