Beware of Using JSON.stringify() for Logging
Published in
3 min readAug 23, 2020
Recently I was working on a legacy system built on AWS Lambda and Node.js. It uses the console object along with JSON.stringify() to log messages and data to AWS CloudWatch.
The log messages often contain helpful clues that assist with troubleshooting issues, particularly when they only show up in the production environment.