Files
gridpilot.gg/apps/companion/main/automation/application/ports/LoggerPort.ts
2026-01-16 15:20:25 +01:00

15 lines
592 B
TypeScript

import type { Logger } from '@core/shared/domain/Logger';
import type { LogContext } from './LoggerContext';
/**
* LoggerPort - Port interface for application-layer logging.
*/
export interface LoggerPort extends Logger {
debug(message: string, context?: LogContext): void;
info(message: string, context?: LogContext): void;
warn(message: string, context?: LogContext): void;
error(message: string, error?: Error, context?: LogContext): void;
fatal(message: string, error?: Error, context?: LogContext): void;
child(context: LogContext): LoggerPort;
flush(): Promise<void>;
}