minlog

1.0.8 • Public • Published

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
});

/minlog/

    Package Sidebar

    Install

    npm i minlog

    Weekly Downloads

    24

    Version

    1.0.8

    License

    MIT

    Last publish

    Collaborators

    • yuzhigang33