UNPKG

@papabravocorp/pluggable-logger

Version:

A pluggable logger for Node.js that writes structured logs to local file systems, Azure ADLS, or custom storage backends.

10 lines (9 loc) 234 B
export interface LogEntry { timestamp: string; level: 'INFO' | 'WARN' | 'ERROR' | 'DEBUG'; message: string; meta?: Record<string, any>; } export interface StorageProvider { write(entry: LogEntry): Promise<void>; }