mirror of https://github.com/apache/activemq.git
[AMQ-7433] Render full stack trace by default but document possible ConversionPattern
This commit is contained in:
parent
e20ef34ae0
commit
feb8d3d073
|
@ -49,12 +49,18 @@ log4j.appender.logfile.maxFileSize=1024KB
|
|||
log4j.appender.logfile.maxBackupIndex=5
|
||||
log4j.appender.logfile.append=true
|
||||
log4j.appender.logfile.layout=org.apache.log4j.EnhancedPatternLayout
|
||||
log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n%throwable{short}
|
||||
log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n%throwable{full}
|
||||
|
||||
# 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
|
||||
# you can control the rendering of exception in the ConversionPattern
|
||||
# by default, we display the full stack trace
|
||||
# if you want to display short form of the exception, you can use
|
||||
#
|
||||
# log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n%throwable{full}
|
||||
# log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n%throwable{short}
|
||||
#
|
||||
# a classic issue with filebeat/logstash is about multiline exception. The following pattern
|
||||
# allows to work smoothly with filebeat/logstash
|
||||
#
|
||||
# log4j.appender.logfile.layour.ConversionPattern=%d | %-5p | %m | %c | %t%n%replace(%throwable){\n}{ }
|
||||
#
|
||||
|
||||
# use some of the following patterns to see MDC logging data
|
||||
|
|
Loading…
Reference in New Issue