Package detail

gulplog

gulpjs7.4mMIT2.2.0

Logger for gulp and gulp plugins

gulp, log, logging

readme

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, ...args)

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.

If the first argument is not a string, all arguments will be emitted directly.

logger.info(msg, ...args)

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.

If the first argument is not a string, all arguments will be emitted directly.

logger.warn(msg, ...args)

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.

If the first argument is not a string, all arguments will be emitted directly.

logger.error(msg, ...args)

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.

If the first argument is not a string, all arguments will be emitted directly.

License

MIT

changelog

gulplog changelog

2.2.0 (2024-03-23)

Features

  • Upgrade glogg to handle events from older versions (4999733)

2.1.0 (2024-03-10)

Features

  • Log all arguments when first argument is not a string (#19) (323a27a)

2.0.1 (2022-09-28)

Bug Fixes

  • Include TypeScript definition file in package (f4aee89)

2.0.0 (2022-06-24)

⚠ BREAKING CHANGES

  • Normalize repository, dropping node <10.13 support (#13)

Features

  • Add TypeScript type definition file (#12) (b5ce699)

Miscellaneous Chores

  • Normalize repository, dropping node <10.13 support (#13) (da9b3ad)

1.0.0

  • Initial release
  • No implementation changed since initial commit

0.0.0

  • Experimentation