UNPKG

log-mate

Version:

log-mate makes logging effortless & powerful—log to console, files, databases, or cloud with structured logs, encryption, real-time streaming, and auto-rotation. It’s plug & play, supports multi-transport logging, and boosts performance with async, lazy l

13 lines (9 loc) 240 B
const plugins = []; function use(plugin) { plugins.push(plugin); } function logWithPlugins(level, message) { plugins.forEach(plugin => plugin(level, message)); } module.exports = use; module.exports = logWithPlugins;