8 lines
330 B
TypeScript
8 lines
330 B
TypeScript
import type { ErrorReporter } from "@core/shared/application/ErrorReporter";
|
|
|
|
export class ConsoleErrorReporter implements ErrorReporter {
|
|
report(error: Error, context?: unknown): void {
|
|
const timestamp = new Date().toISOString();
|
|
console.error(`[${timestamp}] Error reported:`, error.message, { error, context });
|
|
}
|
|
} |