Remove unused logTemplate config setting
All checks were successful
build-and-test / test (push) Successful in 1m4s
build-and-test / build (push) Successful in 1m15s
build-and-test / generate-javadoc (push) Successful in 1m21s

This commit is contained in:
JeremyStar™ 2024-11-09 14:37:32 +01:00
parent 6425442c25
commit dde8972feb
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 0 additions and 21 deletions

View file

@ -237,20 +237,6 @@ public final class EngineConfiguration extends Configuration {
*/ */
private Set<@NotNull String> logFeatures; 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 * Contains how fast the logging thread will
* poll for queued messages. This also causes * 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 "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 "logPollingSpeed" -> logPollingSpeed = parser.getInteger(group + property, true);
case "logForceStandardOutput" -> logForceStandardOutput = parser.getBoolean(group + property); case "logForceStandardOutput" -> logForceStandardOutput = parser.getBoolean(group + property);
@ -396,7 +381,6 @@ public final class EngineConfiguration extends Configuration {
logLevel = LogLevel.INFORMATIONAL; logLevel = LogLevel.INFORMATIONAL;
logFeatures = Set.of("formatting", "time", "methodName", "lineNumber"); 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%<reset>";
logPollingSpeed = 5; logPollingSpeed = 5;
logForceStandardOutput = false; logForceStandardOutput = false;
@ -420,7 +404,6 @@ public final class EngineConfiguration extends Configuration {
case "logLevel" -> logLevel; case "logLevel" -> logLevel;
case "logFeatures" -> logFeatures; case "logFeatures" -> logFeatures;
case "logTemplate" -> logTemplate;
case "logPollingSpeed" -> logPollingSpeed; case "logPollingSpeed" -> logPollingSpeed;
case "logForceStandardOutput" -> logForceStandardOutput; case "logForceStandardOutput" -> logForceStandardOutput;

View file

@ -246,10 +246,6 @@ public final class CrashHandler {
.append(EngineConfiguration.getInstance().getLogFeatures()) .append(EngineConfiguration.getInstance().getLogFeatures())
.append("'\n") .append("'\n")
.append("EngineConfiguration#logTemplate='")
.append(EngineConfiguration.getInstance().getLogTemplate())
.append("'\n")
.append("EngineConfiguration#logPollingSpeed='") .append("EngineConfiguration#logPollingSpeed='")
.append(EngineConfiguration.getInstance().getLogPollingSpeed()) .append(EngineConfiguration.getInstance().getLogPollingSpeed())
.append("'\n") .append("'\n")