WeSearch

logfx v1.0.0: One Logger for Development and Production

·6 min read · 0 reactions · 0 comments · 13 views
#logging#javascript#typescript#node
logfx v1.0.0: One Logger for Development and Production
⚡ TL;DR · AI summary

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.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
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).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)