Pino is a logging framework for node that promises “Very low overhead”. This article explains how to use it inside a docker container.
Running your code in docker can give you reproducibility and guarantee that your code does not depend on your working environment. Getting it to run just right with tests and a small image size is however fairly complicated. This article explains how to do it with sample code.