0.0.4 • Published 9 months ago
mynth-logger-dup v0.0.4
mynth-logger
This repository stores configuration options for handling logs in Mynth
microservices. The setupLogging
function is publicly exposed and can
be called in entrypoint scripts. This function overrides console.log
statements.
For local development, install pino-pretty via npm install --save-dev
pino-pretty
. After calling setupLogging()
, console.log
calls will
output colorful statements to the terminal.
For production builds, logs are output to stdout in JSON format that can be parsed and processed by Datadog.