From dde8972feb923447bedf6420115d00e2a9c10db0 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 9 Nov 2024 14:37:32 +0100 Subject: [PATCH] Remove unused logTemplate config setting --- .../engine/base/EngineConfiguration.java | 17 ----------------- .../base/logging/backend/CrashHandler.java | 4 ---- 2 files changed, 21 deletions(-) diff --git a/base/src/main/java/de/staropensource/engine/base/EngineConfiguration.java b/base/src/main/java/de/staropensource/engine/base/EngineConfiguration.java index 32eb73e..7b80033 100644 --- a/base/src/main/java/de/staropensource/engine/base/EngineConfiguration.java +++ b/base/src/main/java/de/staropensource/engine/base/EngineConfiguration.java @@ -237,20 +237,6 @@ public final class EngineConfiguration extends Configuration { */ private Set<@NotNull String> logFeatures; - /** - * Contains the logging template used for creating log messages. - * - * @see Logger - * @since v1-alpha0 - * -- GETTER -- - * Gets the value for {@link #logTemplate} - * - * @return variable value - * @see #logTemplate - * @since v1-alpha0 - */ - private String logTemplate; - /** * Contains how fast the logging thread will * poll for queued messages. This also causes @@ -362,7 +348,6 @@ public final class EngineConfiguration extends Configuration { } } case "logFeatures" -> logFeatures = Set.copyOf(Arrays.stream(parser.getString(group + property).split(",")).toList()); - case "logTemplate" -> logTemplate = parser.getString(group + property); case "logPollingSpeed" -> logPollingSpeed = parser.getInteger(group + property, true); case "logForceStandardOutput" -> logForceStandardOutput = parser.getBoolean(group + property); @@ -396,7 +381,6 @@ public final class EngineConfiguration extends Configuration { logLevel = LogLevel.INFORMATIONAL; logFeatures = Set.of("formatting", "time", "methodName", "lineNumber"); - logTemplate = "%log_color_primary%[%time_hour%:%time_minute%:%time_second%] [%log_level% %log_path%%log_metadata%] %log_message_prefix%%log_color_primary%%log_color_secondary%%log_message%"; logPollingSpeed = 5; logForceStandardOutput = false; @@ -420,7 +404,6 @@ public final class EngineConfiguration extends Configuration { case "logLevel" -> logLevel; case "logFeatures" -> logFeatures; - case "logTemplate" -> logTemplate; case "logPollingSpeed" -> logPollingSpeed; case "logForceStandardOutput" -> logForceStandardOutput; diff --git a/base/src/main/java/de/staropensource/engine/base/logging/backend/CrashHandler.java b/base/src/main/java/de/staropensource/engine/base/logging/backend/CrashHandler.java index 4a04f57..5571c10 100644 --- a/base/src/main/java/de/staropensource/engine/base/logging/backend/CrashHandler.java +++ b/base/src/main/java/de/staropensource/engine/base/logging/backend/CrashHandler.java @@ -246,10 +246,6 @@ public final class CrashHandler { .append(EngineConfiguration.getInstance().getLogFeatures()) .append("'\n") - .append("EngineConfiguration#logTemplate='") - .append(EngineConfiguration.getInstance().getLogTemplate()) - .append("'\n") - .append("EngineConfiguration#logPollingSpeed='") .append(EngineConfiguration.getInstance().getLogPollingSpeed()) .append("'\n")