Across the layers – logging and monitoring
Infrastructure components can be divided into ones that power the application features and the ones that serve the production team’s needs. The latter group includes visibility and observability functionality, such as logging and monitoring.
Logging and monitoring can be attached to any architecture layer of an application. That’s why we call the corresponding abstraction layers the cross-layers. What abstractions can they have? Let’s start with the logging layer.
Logging
Logging is essential for any software, since it provides visibility to the events that happen within the application. We scan logs to look for errors, warnings, and events preceding them, to learn about the current application state (configuration) and system-wide events, or even to figure out how users interact with the application.
Rails comes with the essential log support out of the box. Depending on the log level, you may see the...