layaair2-cmd
Version:
layaair version 2 toolkit
72 lines (45 loc) • 2.07 kB
Markdown
<p align="center">
<a href="http://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
Log things, prefixed with a timestamp.
```js
var log = require('fancy-log');
log('a message');
// [16:27:02] a message
log.error('oh no!');
// [16:27:02] oh no!
```
Logs the message as if you called `console.log` but prefixes the output with the
current time in HH:MM:ss format.
Logs the message as if you called `console.error` but prefixes the output with the
current time in HH:MM:ss format.
Logs the message as if you called `console.warn` but prefixes the output with the
current time in HH:MM:ss format.
Logs the message as if you called `console.info` but prefixes the output with the
current time in HH:MM:ss format.
Logs the message as if you called `console.dir` but prefixes the output with the
current time in HH:MM:ss format.
MIT
[]: http://img.shields.io/npm/dm/fancy-log.svg
[]: https://www.npmjs.com/package/fancy-log
[]: http://img.shields.io/npm/v/fancy-log.svg
[]: https://travis-ci.org/gulpjs/fancy-log
[]: http://img.shields.io/travis/gulpjs/fancy-log.svg?label=travis-ci
[]: https://ci.appveyor.com/project/gulpjs/fancy-log
[]: https://img.shields.io/appveyor/ci/gulpjs/fancy-log.svg?label=appveyor
[]: https://coveralls.io/r/gulpjs/fancy-log
[]: http://img.shields.io/coveralls/gulpjs/fancy-log/master.svg
[]: https://gitter.im/gulpjs/gulp
[]: https://badges.gitter.im/gulpjs/gulp.svg