Overview of slog-multi features
mainslog-multi provides advanced composition patterns for Go's structured logging (slog). It allows you to build sophisticated logging workflows by combining multiple handlers using various strategies:
- Fanout: Distribute logs to multiple handlers in parallel.
- Router: Conditionally route logs based on custom criteria.
- First Match: Route logs to the first matching handler only.
- Failover: High-availability logging with automatic fallback.
- Load Balancing: Distribute load across multiple handlers.
- Pipeline: Transform and filter logs with middleware chains.
- Error Recovery: Graceful handling of logging failures.
It also supports Inline Handlers and Inline Middleware for rapid development of custom logic.