sebastien-doyon commented on code in PR #1270:
URL: https://github.com/apache/maven/pull/1270#discussion_r1366679339


##########
maven-slf4j-provider/src/main/java/org/slf4j/impl/MavenSimpleLogger.java:
##########
@@ -30,6 +29,14 @@
  * @since 3.5.0
  */
 public class MavenSimpleLogger extends SimpleLogger {
+
+    private static final String TRACE_RENDERED_LEVEL = 
builder().trace("TRACE").build();
+    private static final String DEBUG_RENDERED_LEVEL = 
builder().debug("DEBUG").build();
+    private static final String INFO_RENDERED_LEVEL = 
builder().info("INFO").build();
+    private static final String WARN_RENDERED_LEVEL =
+            builder().warning("WARNING").build();
+    private static final String ERROR_RENDERED_LEVEL = 
builder().error("ERROR").build();

Review Comment:
   I've changed the static constants to class member as a temporary solution 
until the [1279](https://github.com/apache/maven/pull/1279) PR is merged. 
   I also changed the StringBuilder use to MessageBuilder to facilitate the 
merge with the PR, the JLine implementation
   would not support providing a StringBuilder as the internal buffer. To 
Enable reusing the MessageBuilder, a new method `setLength(int)` was added.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to