UNPKG

grafana-logger

Version:

A functional logging package for Grafana with structured JSON output

19 lines 547 B
export type LogLevel = "debug" | "info" | "warn" | "error" | "fatal" | "trace" | "timer"; export interface LogEntry { timestamp: string; level: LogLevel; message: string; service: string; component?: string; trace_file?: string; request_payload?: Record<string, any>; context?: Record<string, any>; process_id?: string; trace_id?: string; duration_ms?: number; tags?: string[]; } export interface PartialLogEntry extends Partial<LogEntry> { service: string; } //# sourceMappingURL=types.d.ts.map