Corred color of not coloured text.(Use [0m - no color)

parent 738f5a41
......@@ -50,7 +50,7 @@ const logger = {
},
debug : function () {
let str = this._prefix + '\033[34m Debug: \033[30m' + this._makeString(arguments);
let str = this._prefix + '\033[34m Debug: \033[0m' + this._makeString(arguments);
if (this._level >= this.DEBUG) {
this._console(str);
this._file(str);
......@@ -58,7 +58,7 @@ const logger = {
}
},
info : function () {
let str = this._prefix + '\033[32m Info: \033[30m' + this._makeString(arguments);
let str = this._prefix + '\033[32m Info: \033[0m' + this._makeString(arguments);
if (this._level >= this.INFO) {
this._console(str);
this._file(str);
......@@ -66,7 +66,7 @@ const logger = {
}
},
warning : function () {
let str = this._prefix + '\033[33m Warning: \033[30m' + this._makeString(arguments);
let str = this._prefix + '\033[33m Warning: \033[0m' + this._makeString(arguments);
if (this._level >= this.WARNING) {
this._console(str);
this._file(str);
......@@ -74,7 +74,7 @@ const logger = {
}
},
error : function () {
let str = this._prefix + '\033[31m Error: \033[30m' + this._makeString(arguments);
let str = this._prefix + '\033[31m Error: \033[0m' + this._makeString(arguments);
if (this._level >= this.ERROR) {
this._console(str);
this._file(str);
......@@ -82,7 +82,7 @@ const logger = {
}
},
fatal : function () {
let str = this._prefix + '\033[35m Fatal: \033[30m' + this._makeString(arguments);
let str = this._prefix + '\033[35m Fatal: \033[0m' + this._makeString(arguments);
if (this._level >= this.FATAL) {
this._console(str);
this._file(str);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment