From 717cd3a095b43b5c4f42efcb41434382fe0f36d0 Mon Sep 17 00:00:00 2001 From: q3769 Date: Sun, 18 Feb 2024 09:57:48 -0600 Subject: [PATCH] + rename --- pom.xml | 2 +- .../elf4j/engine/service/EventingNativeLoggerService.java | 4 ++-- .../writer/{ConseqWriterGroup.java => GroupWriter.java} | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/main/java/elf4j/engine/service/writer/{ConseqWriterGroup.java => GroupWriter.java} (94%) diff --git a/pom.xml b/pom.xml index 7a546a6..7a65846 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ io.github.elf4j elf4j-engine - 15.1.1 + 15.1.2 jar elf4j-engine A stand-alone Java log engine implementing the ELF4J (Easy Logging Facade for Java) API diff --git a/src/main/java/elf4j/engine/service/EventingNativeLoggerService.java b/src/main/java/elf4j/engine/service/EventingNativeLoggerService.java index 0536e49..8efd15a 100644 --- a/src/main/java/elf4j/engine/service/EventingNativeLoggerService.java +++ b/src/main/java/elf4j/engine/service/EventingNativeLoggerService.java @@ -30,7 +30,7 @@ import elf4j.engine.service.configuration.LogServiceConfiguration; import elf4j.engine.service.configuration.LoggerOutputLevelThreshold; import elf4j.engine.service.util.StackTraceUtils; -import elf4j.engine.service.writer.ConseqWriterGroup; +import elf4j.engine.service.writer.GroupWriter; import elf4j.engine.service.writer.LogWriter; import elf4j.util.IeLogger; import java.util.Map; @@ -53,7 +53,7 @@ public EventingNativeLoggerService(@NonNull LogServiceConfiguration logServiceCo return; } noop = false; - logWriter = ConseqWriterGroup.from(logServiceConfiguration); + logWriter = GroupWriter.from(logServiceConfiguration); loggerOutputLevelThreshold = LoggerOutputLevelThreshold.from(logServiceConfiguration); } diff --git a/src/main/java/elf4j/engine/service/writer/ConseqWriterGroup.java b/src/main/java/elf4j/engine/service/writer/GroupWriter.java similarity index 94% rename from src/main/java/elf4j/engine/service/writer/ConseqWriterGroup.java rename to src/main/java/elf4j/engine/service/writer/GroupWriter.java index 04beb73..5011a18 100644 --- a/src/main/java/elf4j/engine/service/writer/ConseqWriterGroup.java +++ b/src/main/java/elf4j/engine/service/writer/GroupWriter.java @@ -51,7 +51,7 @@ * order; meanwhile, logs from the same caller thread will arrive sequentially in the same order as they are called in * the original thread. */ -public class ConseqWriterGroup implements LogWriter, NativeLogServiceManager.Stoppable { +public class GroupWriter implements LogWriter, NativeLogServiceManager.Stoppable { private static final int DEFAULT_CONCURRENCY = Runtime.getRuntime().availableProcessors(); private final List writers; private final ConseqExecutor conseqExecutor; @@ -60,7 +60,7 @@ public class ConseqWriterGroup implements LogWriter, NativeLogServiceManager.Sto @ToString.Exclude private Boolean includeCallerDetail; - private ConseqWriterGroup(@NonNull List writers, ConseqExecutor conseqExecutor) { + private GroupWriter(@NonNull List writers, ConseqExecutor conseqExecutor) { this.writers = writers; this.conseqExecutor = conseqExecutor; IeLogger.INFO.log("{} service writer(s) in {}", writers.size(), this); @@ -71,7 +71,7 @@ private ConseqWriterGroup(@NonNull List writers, ConseqExecutor conse * @param logServiceConfiguration entire configuration * @return the composite writer containing all writers configured in the specified properties */ - @NonNull public static ConseqWriterGroup from(LogServiceConfiguration logServiceConfiguration) { + @NonNull public static GroupWriter from(LogServiceConfiguration logServiceConfiguration) { List logWriterTypes = new ArrayList<>(getLogWriterTypes(logServiceConfiguration)); if (logWriterTypes.isEmpty()) { logWriterTypes.add(new StandardStreamWriter.Type()); @@ -79,7 +79,7 @@ private ConseqWriterGroup(@NonNull List writers, ConseqExecutor conse List logWriters = logWriterTypes.stream() .flatMap(t -> t.getLogWriters(logServiceConfiguration).stream()) .collect(Collectors.toList()); - return new ConseqWriterGroup(logWriters, ConseqExecutor.instance(getConcurrency(logServiceConfiguration))); + return new GroupWriter(logWriters, ConseqExecutor.instance(getConcurrency(logServiceConfiguration))); } private static int getConcurrency(@NonNull LogServiceConfiguration logServiceConfiguration) {