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

16 lines (12 loc) 330 B
let config = { level: "info", transports: [{ type: "console" }], format: "text", maskSensitive: [], encrypt: false, }; const setConfig = (newConfig) => { config = { ...config, ...newConfig }; }; const getConfig = () => config; module.exports = { setConfig, getConfig };