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/fff80292 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/fff80292 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/fff80292 Branch: refs/heads/LOG4J2-1136 Commit: fff80292d7fe25d7ba418419f62073f5c2441a42 Parents: 36c8320 Author: rpopma <[email protected]> Authored: Thu Sep 24 11:15:52 2015 +0200 Committer: Ralph Goers <[email protected]> Committed: Sun Sep 27 10:47:30 2015 -0700 ---------------------------------------------------------------------- .../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/fff80292/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); }
