nlogj
v1.0.4
Published
Awesome nodejs log to file
Downloads
10
Readme
nlogj
Awesome nodejs log to file
Installation
npm install nlogj --save
Usage
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