Initial commit
[yaffs-website] / node_modules / fancy-log / README.md
1 # fancy-log
2
3 [![Travis Build Status](https://img.shields.io/travis/js-cli/fancy-log.svg?branch=master&label=travis&style=flat-square)](https://travis-ci.org/js-cli/fancy-log)
4
5 Log things, prefixed with a timestamp
6
7 __This module was pulled out of gulp-util for use inside the CLI__
8
9 ## Usage
10
11 ```js
12 var log = require('fancy-log');
13
14 log('a message');
15 // [16:27:02] a message
16
17 log.error('oh no!');
18 // [16:27:02] oh no!
19 ```
20
21 ## API
22
23 ### `log(msg...)`
24
25 Logs the message as if you called `console.log` but prefixes the output with the
26 current time in HH:MM:ss format.
27
28 ### `log.error(msg...)`
29
30 Logs the message as if you called `console.error` but prefixes the output with the
31 current time in HH:MM:ss format.
32
33 ### `log.warn(msg...)`
34
35 Logs the message as if you called `console.warn` but prefixes the output with the
36 current time in HH:MM:ss format.
37
38
39 ### `log.info(msg...)`
40
41 Logs the message as if you called `console.info` but prefixes the output with the
42 current time in HH:MM:ss format.
43
44 ### `log.dir(msg...)`
45
46 Logs the message as if you called `console.dir` but prefixes the output with the
47 current time in HH:MM:ss format.
48
49 ## License
50
51 MIT