blob: bb843beef4f555c7571b8e5a9223ccd9320b3ac0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
var hasGulplog = require('has-gulplog');
module.exports = function(){
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);
}
return this;
};
|