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.
Fix JavaScript logging spaghetti with two lines of code. Add context to every log automatically using AsyncLocalStorage—no refactor required.