1.0.8 • Published 8 years ago

minlog v1.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago