Flogger is a powerful logging API for Java, but the core library lacks configuration options and doesn't make use of modern Java features.
The Flogger Next project aims to unlock new, powerful features for Flogger via API extensions and new backend implementations.
This project provides two powerful extensions:
Use the new String Template syntax to include variables directly in formatted message.
// Evaluate log arguments directly with the String Template syntax.
logger.atInfo()."\{x} + \{y} = \{x + y}".log();
See the logger artifact for more, or read the manual.
Improve efficiency and customization for JDK logging or Log4J2.
Features include:
- Customizable message formatting.
- Efficient, customizable logger backend allocation strategy.
David Beaumont is the designer and author of Google's Flogger logging library.