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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user