You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
861 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/** Temp logging, should override form adapter's log */
class InternalLog {
debug(...args) {
console.log(...args);
}
info(...args) {
console.log(...args);
}
warning(...args) {
console.warn(...args);
}
warn(...args) {
return this.warning(...args);
}
error(...args) {
console.error(...args);
}
}
let logger = new InternalLog();
exports.logger = logger;
function replaceLog(externalLog) {
exports.logger = logger = externalLog;
}
exports.replaceLog = replaceLog;
function silence() {
replaceLog({
debug: () => null,
info: () => null,
warn: () => null,
warning: () => null,
error: () => null
});
}
exports.silence = silence;
//# sourceMappingURL=log.js.map