const moment = require('moment');

module.exports = (msg)=>{
	const format = 'YY-MM-DD - HH:mm:ss.SSS';
	const timestamp = moment().format(format);
	return console.log(`[${timestamp}] `, msg);
}
const moment = require('moment');
const fs = require('fs');

module.exports = (msg)=>{
	const format = 'YY-MM-DD - HH:mm:ss.SSS';
	const timestamp = moment().format(format);
	const msgString = `[${timestamp}] ${msg}\n`;
	
	console.log(msgString);
	return fs.appendFileSync('./logs/logs.log', msgString);
}
write msg to file