Under the Hood¶
The idea is to dive deep, step by step, and see what’s happening under the hood of VBA Monologger. Each component plays a vital role in ensuring logs are structured, meaningful, handled and routed effectively.
Below are the key components and their roles:
-
Log levels
Classify the importance of log messages, ranging from detailed debugging information to critical errors that require immediate attention. -
Log record
Captures detailed information about an event or action within an application, forming the core of a log entry. -
Formatter
Structures log messages into a specific format, making them readable and suited for various outputs such as JSON, text, or HTML. -
Handler
Routes log records to their appropriate destinations, such as files, console outputs, or external systems. -
Pre-Processor
Adds or modifies context in log entries before they are formatted or handled, providing flexibility and enrichment to the log data. -
Logger
The central component that orchestrates logging by managing levels, handlers, formatters, and pre-processors to ensure seamless log management.