You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by iv...@apache.org on 2024/08/09 07:21:38 UTC

(ignite) branch master updated: IGNITE-14726 Fix [Log4j2] Omitted start character [ in default log pattern (#11468)

This is an automated email from the ASF dual-hosted git repository.

ivandasch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new eae99b2509a IGNITE-14726 Fix [Log4j2] Omitted start character [ in default log pattern (#11468)
eae99b2509a is described below

commit eae99b2509aed6ef3d7be64595b1e76dd9827839
Author: Denis <11...@users.noreply.github.com>
AuthorDate: Fri Aug 9 17:21:30 2024 +1000

    IGNITE-14726 Fix [Log4j2] Omitted start character [ in default log pattern (#11468)
---
 .../src/main/java/org/apache/ignite/logger/log4j2/Log4J2Logger.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/log4j2/src/main/java/org/apache/ignite/logger/log4j2/Log4J2Logger.java b/modules/log4j2/src/main/java/org/apache/ignite/logger/log4j2/Log4J2Logger.java
index 2c278bdf8d0..2303473b448 100644
--- a/modules/log4j2/src/main/java/org/apache/ignite/logger/log4j2/Log4J2Logger.java
+++ b/modules/log4j2/src/main/java/org/apache/ignite/logger/log4j2/Log4J2Logger.java
@@ -399,7 +399,7 @@ public class Log4J2Logger implements IgniteLoggerEx {
     /** */
     private void addConsoleAppender(Configuration logCfg, boolean clearOutput) {
         PatternLayout layout = PatternLayout.newBuilder()
-            .withPattern(clearOutput ? "%m%n" : "%d{ISO8601}][%-5p][%t][%c{1}] %m%n")
+            .withPattern(clearOutput ? "%m%n" : "[%d{ISO8601}][%-5p][%t][%c{1}] %m%n")
             .withCharset(Charset.defaultCharset())
             .withAlwaysWriteExceptions(false)
             .withNoConsoleNoAnsi(false)