mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 14:55:45 +00:00
Former-commit-id: a27df1846c1fbc898c62a97e34f5f30eaa25325d [formerly ffc7fa7d80b1036f7f0fb4021fc166a58c413d40] [formerly e65c86c6674076e461d8cb804c009161aad7006d [formerly 64368a36e380a93f2d62808d6255826f11da9fee]] Former-commit-id: c0efbb95a1243aa8c1316a34ce852c98b9b0cd66 [formerly 2c7aa0860c82d25d90901e89a7d70f161308d027] Former-commit-id: c3e346e2d6b78be92c66c348e5f9df003a15dadf
38 lines
855 B
TypeScript
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)
|
|
}
|
|
}
|