fancy-log / 1.2.0 last updated 5 months ago created on Sep 7th 2015

Install

npm install --save fancy-log

Clone

git clone git@github.com:phated/fancy-log.git

dependencies show all 9

main chalk 1.1.3 MIT
time-stamp 1.0.1 MIT

maintainers

phated phated

versions

1.2.0 5 months ago phated
1.1.0 9 months ago phated
1.0.0 10 months ago phated
30327 Downloads yesterday.

readme

fancy-log

Travis Build Status

Log things, prefixed with a timestamp

This module was pulled out of gulp-util for use inside the CLI

Usage

1
2
3
4
5
6
7
var log = require('fancy-log');

log('a message');
// [16:27:02] a message

log.error('oh no!');
// [16:27:02] oh no!

API

log(msg...)

Logs the message as if you called console.log but prefixes the output with the current time in HH:MM:ss format.

log.error(msg...)

Logs ths message as if you called console.error but prefixes the output with the current time in HH:MM:ss format.

License

MIT

Resolving all dependencies.. This could take a while as our cache is not yet fully warmed up.