logs-interceptor
Version:
High-performance, production-ready log interceptor for Node.js applications with Loki integration. Built with Clean Architecture principles. Supports Node.js, Browser, and Node-RED.
23 lines • 960 B
TypeScript
/**
* Use Case: CreateLogEntryUseCase
* Handles the creation and processing of log entries
*/
import { LogLevel } from '../../domain/entities/LogEntry';
import { ILogRepository } from '../../domain/repositories/ILogRepository';
import { ILogFilterService } from '../../domain/services/ILogFilterService';
import { IContextService } from '../../domain/services/IContextService';
export interface CreateLogEntryInput {
readonly level: LogLevel;
readonly message: string;
readonly context?: Record<string, unknown>;
}
export declare class CreateLogEntryUseCase {
private readonly logRepository;
private readonly filterService;
private readonly contextService;
constructor(logRepository: ILogRepository, filterService: ILogFilterService, contextService: IContextService);
execute(input: CreateLogEntryInput): Promise<void>;
private createLogEntry;
private generateId;
}
//# sourceMappingURL=CreateLogEntryUseCase.d.ts.map