A very very small logger.
JavaScript Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.eslintignore
.eslintrc
.gitignore
LICENSE
Makefile
README.md
package.json

README.md

Footprint

A very very small logger.

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