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.

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