// src/utils/logger.ts
/**
* Simple logger utility - no over-engineering
* Just wraps console.error with consistent formatting
*/
export class Logger {
static info(message: string, ...args: any[]): void {
console.error(message, ...args);
}
static error(message: string, ...args: any[]): void {
console.error(`❌ ${message}`, ...args);
}
static warn(message: string, ...args: any[]): void {
console.error(`⚠️ ${message}`, ...args);
}
static debug(message: string, ...args: any[]): void {
if (process.env.DEBUG === "true") {
console.error(`🔍 ${message}`, ...args);
}
}
static success(message: string, ...args: any[]): void {
console.error(`✅ ${message}`, ...args);
}
}