From b367e73b501ede5b9a1f744d40c59d2d265faf43 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 25 Nov 2024 08:05:24 +0100 Subject: [PATCH] Recompute colors during logger configuration --- .../main/java/org/apache/maven/slf4j/MavenSimpleLogger.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenSimpleLogger.java b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenSimpleLogger.java index 14b81aff49..e8b1fa26de 100644 --- a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenSimpleLogger.java +++ b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/MavenSimpleLogger.java @@ -160,6 +160,11 @@ public class MavenSimpleLogger extends MavenBaseLogger { } else { this.currentLogLevel = defaultLogLevel; } + traceRenderedLevel = builder().trace("TRACE").build(); + debugRenderedLevel = builder().debug("DEBUG").build(); + infoRenderedLevel = builder().info("INFO").build(); + warnRenderedLevel = builder().warning("WARNING").build(); + errorRenderedLevel = builder().error("ERROR").build(); } public void setLogLevel(int logLevel) {