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 <[email protected]> Authored: Thu Sep 24 11:15:52 2015 +0200 Committer: rpopma <[email protected]> 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); }
