UNPKG

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.

22 lines 794 B
/** * Infrastructure: Log Filter Implementation */ import { ILogFilter } from '../../domain/interfaces/ILogFilter'; import type { LogLevel } from '../../domain/value-objects/LogLevel'; import { LogEntry } from '../../domain/entities/LogEntry'; export interface LogFilterConfig { readonly levels: LogLevel[]; readonly patterns: RegExp[]; readonly samplingRate: number; readonly maxMessageLength: number; readonly sanitize: boolean; readonly sensitivePatterns: RegExp[]; } export declare class LogFilter implements ILogFilter { private readonly config; constructor(config: LogFilterConfig); shouldProcess(entry: LogEntry): boolean; filter(entry: LogEntry): LogEntry; isLevelEnabled(level: LogLevel): boolean; } //# sourceMappingURL=LogFilter.d.ts.map