Skip to content

JacksonTian/footprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A very very small logger.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published