2.2.0 • Published 11 years ago
extended-console v2.2.0
extended-console
Extends default console
logging with various utilities.
Features
- Prepend timestamp to output using
strftime
- ...more to come!
Usage
require('extended-console');
console.log('Log away!');
console.extended.timestampFormat = '%B %d, %Y %H:%M:%S -';
console.log('This is a test');
Options
Options are located in the console.extended
object.
showTimestamp
(boolean) Whether to prepend a timestamp to outputtimestampFormat
(string) Format for timestamp. Usesstrftime
License
MIT (see included LICENSE)