Fix of broken logger
This commit is contained in:
parent
145983fc5d
commit
ab1dd1e549
|
@ -60,8 +60,8 @@ Logger = (function() {
|
||||||
|
|
||||||
Logger.prototype.write = function(options) {
|
Logger.prototype.write = function(options) {
|
||||||
if(typeof console !== 'undefined'){
|
if(typeof console !== 'undefined'){
|
||||||
if(typeof log.debug !== 'undefined'){
|
if(typeof console.log !== 'undefined'){
|
||||||
return log.debug(this.build_message(options));
|
return console.log(this.build_message(options));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -86,7 +86,7 @@ Logger.levels = {
|
||||||
warn: 3,
|
warn: 3,
|
||||||
error: 4,
|
error: 4,
|
||||||
fatal: 5,
|
fatal: 5,
|
||||||
default:3
|
default:2
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.create = function(type, options) {
|
exports.create = function(type, options) {
|
||||||
|
|
Loading…
Reference in New Issue