在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):gulpjs/gulplog开源软件地址(OpenSource Url):https://github.com/gulpjs/gulplog开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulplogLogger for gulp and gulp plugins Usagevar 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]); APILogging (and level of logging) is controlled by 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
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
logger.warn(msg)Warning log level. Typically used for warnings. If the first argument is a string, all arguments are passed to node's
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
LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论