padlocal-client-ts
Version:
Padlocal ts client
28 lines • 764 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const brolog_1 = require("brolog");
class Log {
static getLogger() {
return this._log ? this._log : brolog_1.log;
}
static setLogger(log) {
this._log = log;
}
static error(prefix, ...args) {
this.getLogger().error(prefix, args);
}
static warn(prefix, ...args) {
this.getLogger().warn(prefix, args);
}
static info(prefix, ...args) {
this.getLogger().info(prefix, args);
}
static verbose(prefix, ...args) {
this.getLogger().verbose(prefix, args);
}
static silly(prefix, ...args) {
this.getLogger().silly(prefix, args);
}
}
exports.default = Log;
//# sourceMappingURL=Log.js.map
;