Monitoring Our Application
As professional developers, we should keep in mind that simply ensuring our applications work isn’t enough. We need to monitor what’s going on, and to be able to do that, our applications need to tell us what they are doing.
Broadly speaking, this process of releasing information is referred to as logging. The simplest solution for logging is to append the significant events on a local file, line by line. This file would be the log file of the application. In the old days, when our applications were running on only one or two servers, it was common to directly access that file and dig for information.
The debugging activity consisted mainly of walking through the application code and the log file together to see the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access