Add log method

This commit is contained in:
Maxime Thirouin committed 2014-05-05 08:39:08 +02:00
1 parent acca4581c2
commit f9a5116416
1 file changed
+11
+11
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);
}
}
}