"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExtensionLogger = void 0;
const ide_core_common_1 = require("@opensumi/ide-core-common");
const extension_log_1 = require("../common/extension-log");
class ExtensionLogger {
    constructor(rpcProtocol) {
        this.rpcProtocol = rpcProtocol;
        this.logger = this.rpcProtocol.getProxy(extension_log_1.MainThreadExtensionLogIdentifier);
        this.debugLog = new ide_core_common_1.DebugLog(ide_core_common_1.SupportLogNamespace.ExtensionHost);
    }
    verbose(...args) {
        this.debugLog.info(...args);
        return this.logger.$verbose(...args);
    }
    debug(...args) {
        this.debugLog.debug(...args);
        return this.logger.$debug(...args);
    }
    log(...args) {
        this.debugLog.log(...args);
        return this.logger.$log(...args);
    }
    warn(...args) {
        this.debugLog.warn(...args);
        return this.logger.$warn(...args);
    }
    error(...args) {
        this.debugLog.error(...args);
        return this.logger.$error(...args);
    }
    critical(...args) {
        this.debugLog.error(...args);
        return this.logger.$critical(...args);
    }
}
exports.ExtensionLogger = ExtensionLogger;
//# sourceMappingURL=extension-log.js.map