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
When there is an exception use throwable to wrap in single line with a seperator
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L %m %throwable{separator(|)} %n"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With