Skip to content

geofflancaster/npmdatelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npmdatelog

This package leverages npmlog to add a timestamp to each log record

For general usage, see https://github.com/npm/npmlog

==========

#Basic Usage

var log = require('npmdatelog')

log.enableDate('YYYY-MM-DD HH:mm:ss') // If you do not specify a format, the ISO format will be used

// additional stuff ---------------------------+
// message ----------+                         |
// prefix ----+      |                         |
// level -+   |      |                         |
//        v   v      v                         v
  log.info('fyi', 'I have a kitty cat: %j', myKittyCat)

##Disable Date

log.disableDate()

About

Node log with date time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published