2 <a href="http://gulpjs.com">
3 <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
9 [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Gitter chat][gitter-image]][gitter-url]
11 Logger for gulp and gulp plugins
16 var logger = require('gulplog');
19 logger.debug('The MOST verbose!');
20 logger.info('Some important info');
21 logger.warn('All the warnings to you');
22 logger.error('OH NO! SOMETHING HAPPENED!');
24 // supports util.format!
25 logger.info('%s style!', 'printf');
28 logger.debug({ my: 'obj' });
29 logger.info([1, 2, 3]);
34 Logging (and level of logging) is controlled by [`gulp-cli`][gulp-cli-url]
36 #### logger.debug(msg)
38 Highest log level. Typically used for debugging purposes.
40 If the first argument is a string, all arguments are passed to node's
41 [`util.format()`][util-format-url] before being emitted.
45 Standard log level. Typically used for user information.
47 If the first argument is a string, all arguments are passed to node's
48 [`util.format()`][util-format-url] before being emitted.
52 Warning log level. Typically used for warnings.
54 If the first argument is a string, all arguments are passed to node's
55 [`util.format()`][util-format-url] before being emitted.
57 #### logger.error(msg)
59 Error log level. Typically used when things went horribly wrong.
61 If the first argument is a string, all arguments are passed to node's
62 [`util.format()`][util-format-url] before being emitted.
68 [downloads-image]: http://img.shields.io/npm/dm/gulplog.svg
69 [npm-url]: https://npmjs.org/package/gulplog
70 [npm-image]: http://img.shields.io/npm/v/gulplog.svg
72 [travis-url]: https://travis-ci.org/gulpjs/gulplog
73 [travis-image]: http://img.shields.io/travis/gulpjs/gulplog.svg
75 [gitter-url]: https://gitter.im/gulpjs/gulp
76 [gitter-image]: https://badges.gitter.im/gulpjs/gulp.png
78 [gulp-cli-url]: https://github.com/gulpjs/gulp-cli
79 [util-format-url]: https://nodejs.org/docs/latest/api/util.html#util_util_format_format