You must add an exception to the log template. According to the registration protocol, you can add %ex
or %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.
source
share