log.js 430 B

1234567891011121314
  1. var hasGulplog = require('has-gulplog');
  2. module.exports = function(){
  3. if(hasGulplog()){
  4. // specifically deferring loading here to keep from registering it globally
  5. var gulplog = require('gulplog');
  6. gulplog.info.apply(gulplog, arguments);
  7. } else {
  8. // specifically defering loading because it might not be used
  9. var fancylog = require('fancy-log');
  10. fancylog.apply(null, arguments);
  11. }
  12. return this;
  13. };