Add log method

This commit is contained in:
Maxime Thirouin
2014-05-05 08:39:08 +02:00
parent 4a4fb6fbc6
commit 0d6643cf7a

View File

@@ -0,0 +1,11 @@
module.exports = function() {
if (this.options.debug && console) {
if (typeof console.log === "function") {
console.log.apply(console, arguments);
}
// ie is weird
else if (console.log) {
console.log(arguments);
}
}
}