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
|
||||
|
@ -80,4 +86,4 @@ log4j.appender.audit.maxFileSize=1024KB
|
|||
log4j.appender.audit.maxBackupIndex=5
|
||||
log4j.appender.audit.append=true
|
||||
log4j.appender.audit.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.audit.layout.ConversionPattern=%-5p | %m | %t%n
|
||||
log4j.appender.audit.layout.ConversionPattern=%-5p | %m | %t%n
|
||||
|
|
Loading…
Reference in New Issue