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.
27 lines • 613 B
TypeScript
import { LogLevel } from '../value-objects/LogLevel';
/**
* Interface for log interceptor implementations
*/
export interface ILogInterceptor {
/**
* Intercept and process logs
*/
intercept(level: LogLevel, message: string, context?: Record<string, unknown>): void;
/**
* Enable interception
*/
enable(): void;
/**
* Disable interception
*/
disable(): void;
/**
* Check if interception is enabled
*/
isEnabled(): boolean;
/**
* Restore original behavior
*/
restore(): void;
}
//# sourceMappingURL=ILogInterceptor.d.ts.map