Skip to content

Instantly share code, notes, and snippets.


henry atjshop

View GitHub Profile
atjshop / log.js
Created Sep 14, 2020 — forked from vikas5914/log.js
Custom Logger Library with winston
View log.js
const { createLogger, format, transports } = require('winston')
const moment = require('moment')
// set default log level.
const logLevel = 'info'
var logger = createLogger({
level: logLevel,
levels: {
fatal: 0,