Skip to content

frux/logs-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logs-time

Prepends timestamp to all your console outputs

Usage

require('logs-time')('[HH:MM:ss] ');

console.log('test');                 //-> [14:31:53] test
console.error('error');              //-> [14:31:53] error
process.stdout.write('test stdout'); //-> [14:31:53] test stdout
process.stdout.write('test stderr'); //-> [14:31:53] test stderr

Date formats

logs-time is using dateformat module. Therefore it supports dates patterns described there.

About

Prepends timestamp to all your console outputs

Resources

Stars

Watchers

Forks

Packages

No packages published