Skip to content

Instantly share code, notes, and snippets.

@phaalonso
Created May 13, 2024 00:01
Show Gist options
  • Save phaalonso/da0bdf369e0382018bee679dc303b287 to your computer and use it in GitHub Desktop.
Save phaalonso/da0bdf369e0382018bee679dc303b287 to your computer and use it in GitHub Desktop.
Easy and beautiful nodejs logger
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