mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
log prefixes
This commit is contained in:
@@ -12,12 +12,12 @@ var tools = new function() {
|
|||||||
|
|
||||||
this.debug = function(...args) {
|
this.debug = function(...args) {
|
||||||
if (__debug) {
|
if (__debug) {
|
||||||
console.log(...args);
|
console.log("LOG/DEBUG", ...args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.info = console.log;
|
this.info = (...args) => console.log("LOG/INFO", ...args);
|
||||||
this.error = console.error;
|
this.error = (...args) => console.error("LOG/ERROR", ...args);
|
||||||
};
|
};
|
||||||
|
|
||||||
var $ = function(id) { return document.getElementById(id); };
|
var $ = function(id) { return document.getElementById(id); };
|
||||||
|
|||||||
Reference in New Issue
Block a user