NodeJS Logging

Logging for production nodeJS applications

Collecting some logs is easier than others…

Introduction

Creating Logs

Continuation Local Storage

Diagram showing how global variables (signified with thread ids) can be changed between function invocations © datahero.com

API Gateway and ALB Request Headers

Applications

Solution

How to use it

cls.logger.info()
let logger = cls.logger
logger.info()

Conclusion

A DevOps engineer specialised in cloud infrastructure with a background in theoretical and experimental physics.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store