Logback is a Java logging framework used to record system events and diagnostic messages through a programmable API. It serves as a concrete implementation of the Simple Logging Facade for Java (SLF4J) and provides a structured logging engine for outputting events in machine-readable formats like JSON.
The system distinguishes itself through an asynchronous log processor that utilizes circular queues and background workers to reduce performance overhead. It also features a log file rotation manager for size-based or time-based rollover with automatic compression, and the ability to update logging levels and settings at runtime without restarting the application.
Broad capabilities include distributed request tracing via contextual metadata attachment, comprehensive HTTP traffic recording, and event filtering based on runtime attributes. The framework also supports secure log transmission over encrypted connections and the dispatching of critical alerts via SMTP email.
Configuration is managed through a variety of sources, including XML, Groovy scripts, and file-based settings.