Flogger is a structured logging API for Java that decouples how you log from where logs ultimately go, making it easy to change backends without rewriting application code. Instead of building messages eagerly, it uses lazy parameter evaluation so expensive string building only happens when a log statement is actually emitted. The API encourages structured key–value context and fine-grained rate limiting, which helps keep logs informative without flooding systems during high-traffic or error storms. Handlers (backends) can route the same log record to multiple destinations—console, files, cloud logging—while preserving structured fields for search and alerting. Its fluent style reduces boilerplate and guides developers toward consistent log levels, formatting, and metadata. Because it’s designed for large codebases, Flogger emphasizes performance, binary size discipline, and compatibility with existing logging infrastructures.
Features
- Lazy, parameterized logging to avoid wasted work
- Structured key–value context on every record
- Pluggable backends for console, files, and cloud logging
- Built-in rate limiting and sampling controls
- Fluent, minimal-ceremony API for consistency
- Tools for log-site auditing and performance-friendly defaults