@voyager-0x/agent-mcp
Version:
Voyager MCP Agent - A powerful Model Context Protocol agent
26 lines (25 loc) • 553 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.log = void 0;
const config_js_1 = require("./config.js");
class Log {
get debug() {
return config_js_1.aiConfigManager.isDebug();
}
info(...args) {
if (this.debug) {
console.info(...args);
}
}
warn(...args) {
if (this.debug) {
console.warn(...args);
}
}
error(...args) {
if (this.debug) {
console.error(...args);
}
}
}
exports.log = new Log();