1.0.4 • Published 8 years ago
nlogj v1.0.4
nlogj
 
 
Awesome nodejs log to file
Installation
npm install nlogj --saveUsage
const logFile = require('nlogj')
logFile
	.setTag('Test')
	.setLogName('hello.log')
	.setLogDir(__dirname)
	.clearLog()
	.log('hello')
	.log('hello2')You will see a new log file with name hello.log in current folder with content
2018-02-11 16:04:23 [Test]: hello
2018-02-11 16:04:23 [Test]: hello2