Skip to content

Instantly share code, notes, and snippets.

View khalilovcmd's full-sized avatar
🏠
Working from home

Tarek Khalil khalilovcmd

🏠
Working from home
View GitHub Profile
@khalilovcmd
khalilovcmd / logger.js
Last active July 8, 2019 14:18 — forked from rtgibbons/logger.js
Logger Library with winston
var winston = require('winston');
var fs = require('fs');
// check if directory exist
if (!fs.existsSync('logs')) {
fs.mkdirSync('logs'); // create new directory
}
// Set up logger
var customColors = {