2017-04-20 03:09:25 +02:00
|
|
|
var hasGulplog = require('has-gulplog');
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
module.exports = function(){
|
2017-04-20 03:09:25 +02:00
|
|
|
if(hasGulplog()){
|
|
|
|
// specifically deferring loading here to keep from registering it globally
|
|
|
|
var gulplog = require('gulplog');
|
|
|
|
gulplog.info.apply(gulplog, arguments);
|
|
|
|
} else {
|
|
|
|
// specifically defering loading because it might not be used
|
|
|
|
var fancylog = require('fancy-log');
|
|
|
|
fancylog.apply(null, arguments);
|
|
|
|
}
|
2016-10-10 03:43:44 +02:00
|
|
|
return this;
|
|
|
|
};
|