I've a spring boot kotlin application and I would like to intercept log messages to be able to send the error messages to a third party dashboard without needing to re-write all the logging code already existent in the project...
I've never really dealt with slf4j or other log libraries on kotlin...
The simplest way i can possible think is if somehow i could override the default log.error method then make the code i need to post the message to my dashboard and end by calling the super.error
other way would be if i somehow could listen to these messages
does anyone know how can i achieve that?