I am using kotlin.logging as my logging framework for an application.
I would like to be able to log the stack trace in a much more readable way (maybe JSON format):
I am doing the following, but it results in a very verbose/unreadable format:
logger.error("Exception caught in handleIllegalArgumentsException: $e", e.printStackTrace())
when logging the Throwable exception only (see below), it does not show the stack trace:
logger.error("Exception caught in handleIllegalArgumentsException: $e")