Expand description
Callback system for log events
This module provides a flexible callback system that allows users to hook into various logging events. Callbacks are executed asynchronously and can be used for monitoring, alerting, custom formatting, and error handling.
Structs§
- Callback
Manager - Manages all callback types for the logging system.
Type Aliases§
- Color
Callback - Type alias for color callbacks that customize color formatting. Takes a Level and message text, returns formatted string with ANSI codes.
- Exception
Callback - Type alias for exception callbacks that handle errors and exceptions. Takes error message and backtrace string.
- LogCallback
- Type alias for log callbacks that are executed for each log record. Returns Ok(()) on success or Err(String) with error message on failure.