ruch
Version:
Revolutionary React TypeScript CLI with hexagonal architecture & AI-powered development assistance. Create maintainable, scalable applications with domain-driven design and integrated AI tooling.
31 lines (25 loc) • 665 B
text/typescript
import chalk from 'chalk';
export interface Logger {
info(message: string): void;
success(message: string): void;
warning(message: string): void;
error(message: string): void;
log(message: string): void;
}
export class ConsoleLogger implements Logger {
info(message: string): void {
console.log(chalk.blue('ℹ'), message);
}
success(message: string): void {
console.log(chalk.green('✓'), message);
}
warning(message: string): void {
console.log(chalk.yellow('⚠'), message);
}
error(message: string): void {
console.log(chalk.red('✗'), message);
}
log(message: string): void {
console.log(message);
}
}