gulplog
Logger for gulp and gulp plugins
Last updated 2 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install gulplog 
SYNC missed versions from official npm registry.

gulplog

NPM version Downloads Build Status Coveralls Status

Logger for gulp and gulp plugins

Usage

var logger = require('gulplog');

// logs strings
logger.debug('The MOST verbose!');
logger.info('Some important info');
logger.warn('All the warnings to you');
logger.error('OH NO! SOMETHING HAPPENED!');

// supports util.format!
logger.info('%s style!', 'printf');

// log anything
logger.debug({ my: 'obj' });
logger.info([1, 2, 3]);

API

Logging (and level of logging) is controlled by gulp-cli

logger.debug(msg)

Highest log level. Typically used for debugging purposes.

If the first argument is a string, all arguments are passed to node's util.format() before being emitted.

logger.info(msg)

Standard log level. Typically used for user information.

If the first argument is a string, all arguments are passed to node's util.format() before being emitted.

logger.warn(msg)

Warning log level. Typically used for warnings.

If the first argument is a string, all arguments are passed to node's util.format() before being emitted.

logger.error(msg)

Error log level. Typically used when things went horribly wrong.

If the first argument is a string, all arguments are passed to node's util.format() before being emitted.

License

MIT

Current Tags

  • 2.0.1                                ...           latest (2 years ago)

4 Versions

  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           9 years ago
  • 0.0.0                                ...           9 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (6)

Copyright 2013 - present © cnpmjs.org | Home |