Files
smartmta/dist_ts/logger.d.ts

18 lines
801 B
TypeScript
Raw Normal View History

2026-02-10 15:54:09 +00:00
declare class StandardLogger {
private defaultContext;
private correlationId;
constructor();
log(level: 'error' | 'warn' | 'info' | 'success' | 'debug', message: string, context?: Record<string, any>): void;
error(message: string, context?: Record<string, any>): void;
warn(message: string, context?: Record<string, any>): void;
info(message: string, context?: Record<string, any>): void;
success(message: string, context?: Record<string, any>): void;
debug(message: string, context?: Record<string, any>): void;
setContext(context: Record<string, any>, overwrite?: boolean): void;
setCorrelationId(id?: string | null): string;
getCorrelationId(): string | null;
clearCorrelationId(): void;
}
export declare const logger: StandardLogger;
export {};