Is there an easy way to enable stack tracing in spring boot logging?

I want to see more than just an Exception message line in my logs. Better stack tracing would be preferable. Is there an easy way to do this, or do I need to delve into custom log journal classes? I would rather just set the configuration parameter somewhere.

+4
source share
1 answer

You must add an exception to the log template. According to the registration protocol, you can add %exor %xEx. If you have not yet set up a custom log configuration, exceptions should already be logged because the default log configuration that comes with Spring Boot contains these template keywords. If this does not work, another problem may arise.

+1
source

All Articles