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

8 lines (6 loc) 180 B
function lazy(logFunc) { return (level, messageFunc) => { if (typeof messageFunc === "function") logFunc(level, messageFunc()); }; } module.exports = lazy;