+ if (javaUtilLogging != null)
+ return;
+ init();
+ javaUtilLogging = ThinJavaUtilLogging.init();
+ javaUtilLogging.readConfiguration(logging.getLevels());
+ }
+
+ public static Consumer<Map<String, Object>> getConfigurationConsumer() {
+ Objects.requireNonNull(logging);
+ return logging;
+ }
+
+ public static Flow.Publisher<Map<String, Serializable>> getLogEntryPublisher() {
+ Objects.requireNonNull(logging);
+ return logging.getLogEntryPublisher();
+ }
+
+ static void update(Map<String, Object> configuration) {
+ if (logging == null)
+ throw new IllegalStateException("Thin logging must be initialized first");
+ logging.accept(configuration);
+ if (javaUtilLogging != null)
+ javaUtilLogging.readConfiguration(logging.getLevels());