This gist demonstrates configuring asynchronous logging with Logback in a Spring Boot application. This approach provides improved performance, reduced latency, scalability, and fault tolerance.
By leveraging existing Spring logging configuration properties, we can customize the logging behavior according to your application's requirements seamlessly based on the envirement variables declared in defaults.xml. See Custom log configuration
Important
Contrary to the default configuration, file logging (ASYNC_FILE) is enabled even if logging.file.name
or logging.file.path
are not used.