Skip to content

Instantly share code, notes, and snippets.

View atjshop's full-sized avatar

henry atjshop

View GitHub Profile
@atjshop
atjshop / log.js
Created September 14, 2020 04:23 — forked from vikas5914/log.js
Custom Logger Library with winston
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,