nlogj

1.0.4 • Public • Published

nlogj

npm license github-issues

Awesome nodejs log to file

nodei.co

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

Readme

Keywords

none

Package Sidebar

Install

npm i nlogj

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • nhancv