We are aggregating our logs to Amazon CloudWatch Logs.
We'd like to be able to append a stack trace. Does CloudWatch Log's web interface parse a newline character to make this more readable?
I have faced a similar problem with logs for Lambda and I found two answers on the web that can be useful for anyone dealing with this.
1) For CloudWatch Logs Agent you could configure the multi_line_start_pattern parameter (pointed by Greg here).
2) On Lambda Logs you could use \r instead of \n as the new line delimeter (tested on 2017-05-30 only for lambda running python 2.7 with logging module)(pointed by RichardBronosky here).
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