vodafone-station-cli
Version:
Access your Vodafone Station from the comfort of the command line.
47 lines (46 loc) • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConsoleLogger = exports.OclifLogger = void 0;
class OclifLogger {
delegateLog;
delegateWarn;
delegateDebug;
delegateError;
constructor(delegateLog, delegateWarn, delegateDebug, delegateError) {
this.delegateLog = delegateLog;
this.delegateWarn = delegateWarn;
this.delegateDebug = delegateDebug;
this.delegateError = delegateError;
}
debug(...args) {
this.delegateDebug(args);
}
error(input, options) {
this.delegateError(input, options);
}
jsonEnabled() {
return true;
}
log(message, ...args) {
this.delegateLog(message, args);
}
warn(input) {
this.delegateWarn(input);
}
}
exports.OclifLogger = OclifLogger;
class ConsoleLogger {
debug(...args) {
console.debug(args);
}
error(input, options) {
console.log(input, options);
}
log(message, ...args) {
console.log(message, args);
}
warn(input) {
console.warn(input);
}
}
exports.ConsoleLogger = ConsoleLogger;