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.

37 lines 1.46 kB
/** * Domain Entity: LogEntry * Represents a log entry in the system */ import type { LogLevel } from '../value-objects/LogLevel'; export interface LogEntry { readonly id: string; readonly timestamp: string; readonly level: LogLevel; readonly message: string; readonly context?: Record<string, unknown>; readonly traceId?: string; readonly spanId?: string; readonly requestId?: string; readonly labels?: Record<string, string>; readonly metadata?: LogMetadata; } export interface LogMetadata { readonly memoryUsage?: number; readonly cpuUsage?: number; readonly [key: string]: unknown; } export declare class LogEntryEntity { readonly id: string; readonly timestamp: string; readonly level: LogLevel; readonly message: string; readonly context?: Record<string, unknown> | undefined; readonly traceId?: string | undefined; readonly spanId?: string | undefined; readonly requestId?: string | undefined; readonly labels?: Record<string, string> | undefined; readonly metadata?: LogMetadata | undefined; constructor(id: string, timestamp: string, level: LogLevel, message: string, context?: Record<string, unknown> | undefined, traceId?: string | undefined, spanId?: string | undefined, requestId?: string | undefined, labels?: Record<string, string> | undefined, metadata?: LogMetadata | undefined); toJSON(): LogEntry; } //# sourceMappingURL=LogEntry.d.ts.map