organize and clean up

This commit is contained in:
2026-03-24 13:42:14 +00:00
parent e8afc8ea0d
commit f7101fec4d
45 changed files with 410 additions and 747 deletions
+1
View File
@@ -4,5 +4,6 @@ plugins {
dependencies {
api(libs.jackson.databind)
api(libs.apache.commons.lang3)
api(libs.apache.commons.collections)
}
@@ -5,6 +5,14 @@ import org.slf4j.Logger;
import java.util.function.Consumer;
public interface LogAggregator {
static LogAggregator empty() {
return with(s -> {});
}
static LogAggregator stdout() {
return with(System.out::println);
}
static LogAggregator with(final Consumer<String> consumer) {
return new LogAggregatorImpl(consumer);
}