Winston Dev Format
Pretty log output for local development.
In production you should probably be logging JSON as it makes it easier to log complex objects and filter and search them later. But JSON is hard to read.
Make your life easier during development by logging in a format that's easier to read.
const createLogger format transports = ;const devFormat = ;// set up the logger however you likeconst isProduction = processenvNODE_ENV === "production";const logger =;// get logginglogger;logger;logger;
Uses Node's built in
util.format to render values values.