@voyager-0x/agent-mcp
Version:
Voyager MCP Agent - A powerful Model Context Protocol agent
25 lines (22 loc) • 411 B
text/typescript
import { aiConfigManager } from "./config.js";
class Log {
get debug() {
return aiConfigManager.isDebug();
}
info(...args: any[]) {
if (this.debug) {
console.info(...args);
}
}
warn(...args: any[]) {
if (this.debug) {
console.warn(...args);
}
}
error(...args: any[]) {
if (this.debug) {
console.error(...args);
}
}
}
export const log = new Log();