Files
lifeforge/scripts/forge/utils/logging.ts
Melvin Chia 9f17cfd33b feat(cli): implement module management commands (add, remove, list) and enhance CLI logging
Former-commit-id: a27df1846c1fbc898c62a97e34f5f30eaa25325d [formerly ffc7fa7d80b1036f7f0fb4021fc166a58c413d40] [formerly e65c86c6674076e461d8cb804c009161aad7006d [formerly 64368a36e380a93f2d62808d6255826f11da9fee]]
Former-commit-id: c0efbb95a1243aa8c1316a34ce852c98b9b0cd66 [formerly 2c7aa0860c82d25d90901e89a7d70f161308d027]
Former-commit-id: c3e346e2d6b78be92c66c348e5f9df003a15dadf
2025-10-10 13:20:33 +08:00

38 lines
855 B
TypeScript

import { LoggingService } from '@server/core/functions/logging/loggingService'
/**
* CLI Logging service that wraps the server's LoggingService
* Provides consistent logging across the entire CLI with file persistence
*/
export class CLILoggingService {
private static readonly SERVICE_NAME = 'CLI'
/**
* Log an informational message
*/
static info(message: string): void {
LoggingService.info(message, this.SERVICE_NAME)
}
/**
* Log an error message
*/
static error(message: string): void {
LoggingService.error(message, this.SERVICE_NAME)
}
/**
* Log a warning message
*/
static warn(message: string): void {
LoggingService.warn(message, this.SERVICE_NAME)
}
/**
* Log a debug message
*/
static debug(message: string): void {
LoggingService.debug(message, this.SERVICE_NAME)
}
}