Why You Should Add Logging To Your Code (and make it more helpful)
summary
Simple plumber API divides a by b and demonstrates adding log4r info and warning messages (e.g., "attempting to divide 100 by 4" and "must supply numerator or denominator"). Logs get written to syslog and routed to cloud monitoring such as Azure Monitor or AWS CloudWatch, where messages are filterable and alerts trigger email or SMS. The demo shows concrete logger setup, a syslog appender, end-to-end ingestion into the cloud dashboard, and functioning alert notifications.
AI-written summary · about
chapters (3)
related talks
29mAre logs a software engineer's best friend? Yes - follow these best practices
36mBeyond grep: Practical Logging and Metrics
40mNode.js: Logging
38mLogging as a Painkiller
31mThe Long and Winding Road to Application Logging [A]
42mOne Log
22mEverything You Need to Know About Syslog Drains - Hands on Edition
21mLOGS. HOW DO THEY AFFECT ON MY LIFE?
