I added userId and transactionId to every console.log without refactoring

📰 Dev.to · Alex Radulovic

Fix JavaScript logging spaghetti with two lines of code. Add context to every log automatically using AsyncLocalStorage—no refactor required.

Published 21 Jan 2026
Read full article → ← Back to Reads