You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2015/09/24 11:19:58 UTC

[1/2] logging-log4j2 git commit: Checkstyle: LineLength

Repository: logging-log4j2
Updated Branches:
  refs/heads/master d64ec4481 -> 7135b962e


Checkstyle: LineLength

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/a48f8f26
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/a48f8f26
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/a48f8f26

Branch: refs/heads/master
Commit: a48f8f269d2c9d8784f623344e817f30084e70a5
Parents: d64ec44
Author: rpopma <rp...@apache.org>
Authored: Thu Sep 24 11:15:52 2015 +0200
Committer: rpopma <rp...@apache.org>
Committed: Thu Sep 24 11:15:52 2015 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/logging/log4j/LogManager.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a48f8f26/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java b/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
index 4f26b7c..0ba8709 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
@@ -102,7 +102,8 @@ public class LogManager {
                 }
 
                 if (factories.isEmpty()) {
-                    LOGGER.error("Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...");
+                    LOGGER.error("Log4j2 could not find a logging implementation. "
+                            + "Please add log4j-core to the classpath. Using SimpleLogger to log to the console...");
                     factory = new SimpleLoggerContextFactory();
                 } else if (factories.size() == 1) {
                     factory = factories.get(factories.lastKey());
@@ -118,7 +119,8 @@ public class LogManager {
 
                 }
             } else {
-                LOGGER.error("Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...");
+                LOGGER.error("Log4j2 could not find a logging implementation. "
+                        + "Please add log4j-core to the classpath. Using SimpleLogger to log to the console...");
                 factory = new SimpleLoggerContextFactory();
             }
         }
@@ -280,7 +282,8 @@ public class LogManager {
      *            be returned. If true then only a single LoggerContext will be returned.
      * @return a LoggerContext.
      */
-    protected static LoggerContext getContext(final String fqcn, final ClassLoader loader, final boolean currentContext) {
+    protected static LoggerContext getContext(final String fqcn, final ClassLoader loader,
+            final boolean currentContext) {
         return factory.getContext(fqcn, loader, null, currentContext);
     }
 


[2/2] logging-log4j2 git commit: CheckStyle: LineLength, space after '{' in array initializer

Posted by rp...@apache.org.
CheckStyle: LineLength, space after '{' in array initializer 

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/7135b962
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7135b962
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7135b962

Branch: refs/heads/master
Commit: 7135b962e877fcb8f2e21ffb7a6077f41f0d93cc
Parents: a48f8f2
Author: rpopma <rp...@apache.org>
Authored: Thu Sep 24 11:19:52 2015 +0200
Committer: rpopma <rp...@apache.org>
Committed: Thu Sep 24 11:19:52 2015 +0200

----------------------------------------------------------------------
 .../logging/log4j/message/LocalizedMessage.java | 27 ++++++++++----------
 1 file changed, 14 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7135b962/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java b/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
index 32f848d..c071a20 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
@@ -80,7 +80,8 @@ public class LocalizedMessage implements Message, LoggerNameAwareMessage {
         this.locale = locale;
     }
 
-    public LocalizedMessage(final ResourceBundle bundle, final Locale locale, final String key, final Object[] arguments) {
+    public LocalizedMessage(final ResourceBundle bundle, final Locale locale, final String key,
+            final Object[] arguments) {
         this.key = key;
         this.argArray = arguments;
         this.throwable = null;
@@ -94,53 +95,53 @@ public class LocalizedMessage implements Message, LoggerNameAwareMessage {
     }
 
     public LocalizedMessage(final String messagePattern, final Object arg) {
-        this((ResourceBundle) null, (Locale) null, messagePattern, new Object[] { arg });
+        this((ResourceBundle) null, (Locale) null, messagePattern, new Object[] {arg});
     }
 
     public LocalizedMessage(final String baseName, final String key, final Object arg) {
-        this(baseName, (Locale) null, key, new Object[] { arg });
+        this(baseName, (Locale) null, key, new Object[] {arg});
     }
 
     public LocalizedMessage(final ResourceBundle bundle, final String key, final Object arg) {
-        this(bundle, (Locale) null, key, new Object[] { arg });
+        this(bundle, (Locale) null, key, new Object[] {arg});
     }
 
     public LocalizedMessage(final String baseName, final Locale locale, final String key, final Object arg) {
-        this(baseName, locale, key, new Object[] { arg });
+        this(baseName, locale, key, new Object[] {arg});
     }
 
     public LocalizedMessage(final ResourceBundle bundle, final Locale locale, final String key, final Object arg) {
-        this(bundle, locale, key, new Object[] { arg });
+        this(bundle, locale, key, new Object[] {arg});
     }
 
     public LocalizedMessage(final Locale locale, final String key, final Object arg) {
-        this((ResourceBundle) null, locale, key, new Object[] { arg });
+        this((ResourceBundle) null, locale, key, new Object[] {arg});
     }
 
     public LocalizedMessage(final String messagePattern, final Object arg1, final Object arg2) {
-        this((ResourceBundle) null, (Locale) null, messagePattern, new Object[] { arg1, arg2 });
+        this((ResourceBundle) null, (Locale) null, messagePattern, new Object[] {arg1, arg2});
     }
 
     public LocalizedMessage(final String baseName, final String key, final Object arg1, final Object arg2) {
-        this(baseName, (Locale) null, key, new Object[] { arg1, arg2 });
+        this(baseName, (Locale) null, key, new Object[] {arg1, arg2});
     }
 
     public LocalizedMessage(final ResourceBundle bundle, final String key, final Object arg1, final Object arg2) {
-        this(bundle, (Locale) null, key, new Object[] { arg1, arg2 });
+        this(bundle, (Locale) null, key, new Object[] {arg1, arg2});
     }
 
     public LocalizedMessage(final String baseName, final Locale locale, final String key, final Object arg1,
             final Object arg2) {
-        this(baseName, locale, key, new Object[] { arg1, arg2 });
+        this(baseName, locale, key, new Object[] {arg1, arg2});
     }
 
     public LocalizedMessage(final ResourceBundle bundle, final Locale locale, final String key, final Object arg1,
             final Object arg2) {
-        this(bundle, locale, key, new Object[] { arg1, arg2 });
+        this(bundle, locale, key, new Object[] {arg1, arg2});
     }
 
     public LocalizedMessage(final Locale locale, final String key, final Object arg1, final Object arg2) {
-        this((ResourceBundle) null, locale, key, new Object[] { arg1, arg2 });
+        this((ResourceBundle) null, locale, key, new Object[] {arg1, arg2});
     }
 
     /**