logfx v1.0.0: One Logger for Development and Production
logfx v1.0.0 has been released as a logger designed for both development and production environments. It features automatic format detection based on the environment, built-in PII redaction, and reliable log transport mechanisms. The logger aims to simplify logging by providing a consistent API across different platforms while ensuring that logs are both human-readable and machine-readable.
- ▪logfx v1.0.0 includes 13 official integrations and requires zero dependencies.
- ▪The logger automatically switches formats based on the NODE_ENV, eliminating the need for manual configuration.
- ▪It features built-in PII redaction to protect sensitive user data during logging.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 419795) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Chintan Shah Posted on May 27 logfx v1.0.0: One Logger for Development and Production #logging #javascript #typescript #node Today I'm shipping logfx v1.0.0. It's the first release I consider production-ready: 13 official integrations, PII redaction, retry and circuit breaker in the webhook transport, and zero dependencies. Same API in Node and browser. Every logger forces a choice: readable output for development, or structured JSON for production.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).