1.0.8 • Published 9 years ago

minlog v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

minlog

asdf Coverage Status

A pretty simple and high performance logger for Node.js, especially used for access logging of web app.

Installation

npm install minlog

Usage

Getting start

const MinLog = require('minlog');
const mlog = MinLog({
  fileName : '[test-]YYYY-MM-DD[.log]'
});

available levels

  • mlog.info
  • mlog.warn
  • mlog.debug
  • mlog.error
  • mlog.trace

Buffer Log

you can buffer your access log if you have big visits (high qps).

const mlog = MinLog({
  fileName : '[test-]YYYY-MM-DD[.log]'
  duration : 5000, // flush buffer time, default is 1000ms
  bufferLength : 1000 // set max buffer length, default is 0
});
1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago