Update logging listener to use normal stack trace ordering by default

Previously, LoggingApplicationListener used %rEx as the default
exception conversion word. This would result in the nested causes
being logging in reverse order, i.e. the most deeply nested cause
would be logged first.

This commit updates the default to be %wEx and adds a test to verify
the default behaviour.

Closes gh-4247
This commit is contained in:
Andy Wilkinson
2015-10-28 14:01:22 +00:00
parent 2dee3a9fe9
commit 8ed472d6f9
4 changed files with 23 additions and 10 deletions

View File

@@ -58,7 +58,7 @@ content into your application; rather pick only the properties that you need.
# LOGGING
logging.config= # location of config file (default classpath:logback.xml for logback)
logging.exception-conversion-word=%rEx # conversion word used when logging exceptions
logging.exception-conversion-word=%wEx # conversion word used when logging exceptions
logging.file=myapp.log
logging.level.*= # levels for loggers, e.g. "logging.level.org.springframework=DEBUG" (TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF)
logging.path=/var/log