Created
May 13, 2024 00:01
-
-
Save phaalonso/da0bdf369e0382018bee679dc303b287 to your computer and use it in GitHub Desktop.
Easy and beautiful nodejs logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pino from "pino"; | |
import pretty from 'pino-pretty' | |
const stream = pretty({colorize: true}); | |
const logger = pino({ | |
serializers: { | |
err: pino.stdSerializers.err | |
}, | |
}, stream); | |
export {logger}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment