Logging and Monitoring Your Application
Maintaining records and metrics provides us with many advantages during our development cycle. They can help us increase our application’s performance, observe issues before they become problems, and give us insights into the application’s state. Logging and monitoring your application can reduce the time your development (and debugging) takes, as well as the number of headaches you acquire throughout the project. Logging is something that is often overlooked or treated with minimal afterthought, but it could make the difference between losing an hour’s worth of uptime or an entire day’s worth.
Suppose we had an application that simply inserted the details of a registration form into a database table. One day, the team accidentally renamed the first_name
column to firstname
and now no new records were being inserted. With logging, we would see something along the lines of a “first_name
column does not exist...