v3.0.1
Easier to use for Java language. Not need INSTANCE
when calling methods like in Kotlin. There are new methods in ReactiveLogger with one parameter without defaults because Java language can not understand like ... , param = 0): ...
.
Java Example:
// Before (can also be used after modification)
Configuration.INSTANCE.addGenericHook("test", "foo", 0, (String value, MDC mdc) -> Map.of("key", value));
Configuration.INSTANCE.setDefaultReactorContextMdcKey("custom");
var logger = ReactiveLogger.Companion.getLogger(JavaExample.class, null, null);
logger.info("message");
// After
Configuration.addGenericHook("test", "foo", (String value, MDC mdc) -> Map.of("key", value)); // order default value is 0
Configuration.setDefaultReactorContextMdcKey("custom");
var logger = ReactiveLogger.getLogger(JavaExample.class);
logger.info("message"); // result: Mono<ViewContext>