My spring boot application uses logback.
I was searching through logback docs and I couldn't find if there is support for a feature to send an email with an attachment .log file when an error occurs.
Currently my application only sends out an email with an excerpt of the error.