<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>
Logger for gulp and gulp plugins
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]);
Logging (and level of logging) is controlled by gulp-cli
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.
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.
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.
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.
MIT
<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> # gulplog [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Gitter chat][gitter-image]][gitter-url] Logger for gulp and gulp plugins ## Usage ```js 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`][gulp-cli-url] #### 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()`][util-format-url] 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()`][util-format-url] 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()`][util-format-url] 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()`][util-format-url] before being emitted. ## License MIT [downloads-image]: http://img.shields.io/npm/dm/gulplog.svg [npm-url]: https://npmjs.org/package/gulplog [npm-image]: http://img.shields.io/npm/v/gulplog.svg [travis-url]: https://travis-ci.org/gulpjs/gulplog [travis-image]: http://img.shields.io/travis/gulpjs/gulplog.svg [gitter-url]: https://gitter.im/gulpjs/gulp [gitter-image]: https://badges.gitter.im/gulpjs/gulp.png [gulp-cli-url]: https://github.com/gulpjs/gulp-cli [util-format-url]: https://nodejs.org/docs/latest/api/util.html#util_util_format_format
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19553 | swellard | Move and rename clients | ||
//guest/perforce_software/helix-web-services/main/source/clients/2016.1.0/javascript/node_modules/gulplog/README.md | |||||
#1 | 18810 | tjuricek |
First-pass at JavaScript client SDK. JavaScript requires Node with Gulp to "browserfy" the library. It's the easiest way I found to use the swagger-js project; bundle up a wrapping method. There is no JavaScript reference guide. The swagger-js doesn't really document what they do very well, actually. Overall I'm not particularly impressed by swagger-js, it was hard to even figure out what the right method syntax was. We may want to invest time in doing it better. This required setting CORS response headers, which are currently defaulted to a fairly insecure setting. |