footprint

2.0.0 • Public • Published

Footprint

A very very small logger.

codecov

Installation

$ npm install footprint -S

Usage

var Footprint = require('footprint');

// new instance
var logger = new Footprint({
  logdir: os.tmpdir(), // default: `os.tmpdir()`
  prefix: 'footprint-', // default: `"footprint-"`
  enable: true, // default: `true`
  format: Footprint.YYYYMMDD // default: `Footprint.YYYYMMDD(new Date())`
});

// log some things
logger.log('some things');
// => write into `${logdir}${prefix}${format(new Date())}.log`
// cat `${logdir}${prefix}${format(new Date())}.log`
// => some things

License

The MIT license

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i footprint

    Weekly Downloads

    8

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.3 kB

    Total Files

    4

    Last publish

    Collaborators

    • jacksontian