The logs for my Spring Boot Java application are stored in CloudWatch. The problem is when exception occur the stacktrace is not properly coming, since it gets scattered across the CloudWatch. I tried all the logback.xml configs, but it is not working.
Is there any custom encoder java class to append all the stack trace of an exception into a single line so that it will be easy to track back