#Logging
5 notas · última:
Node.js Best Practices — Error Handling and Logging
The article recommends documenting API errors with GraphQL, exiting on unknown errors, logging with mature tools, testing error flows, monitoring app health, and catching unhandled promise rejections.
How to Build a Node.js Error-handling System
The article separates operational and programmer errors, recommends async/await with a custom Error hierarchy, and shows a centralized handler with logging, alerts, and graceful shutdown.
NodeJS logging, from beginner to expert.
Step‑by‑step NodeJS logging tutorial moving from console.log to a custom Winston‑based logger with transports, request tracking, safety checks and integration with external providers.
Logging Without a Static Logger
Argues that static/global loggers complicate testing and user-facing logs, and proposes passing a log object as an injectable dependency instead.
Great Programmers Write Debuggable Code
The post argues that good programmers add logging and tools that make failures easier to debug, because when code breaks, useful logs help narrow down the cause without needing a special debug build.
