You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2016/09/08 18:54:31 UTC
logging-log4j2 git commit: Format nits.
Repository: logging-log4j2
Updated Branches:
refs/heads/master a107355ed -> 08cad9804
Format nits.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/08cad980
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/08cad980
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/08cad980
Branch: refs/heads/master
Commit: 08cad98046a3b54de632a9b428153acf0a7a1ddd
Parents: a107355
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Sep 8 11:54:29 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu Sep 8 11:54:29 2016 -0700
----------------------------------------------------------------------
.../apache/logging/log4j/core/config/LoggerConfig.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/08cad980/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
index 886b78d..c7170c7 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
@@ -412,11 +412,15 @@ public class LoggerConfig extends AbstractFilterable {
*/
@Deprecated
public static LoggerConfig createLogger(final String additivity,
- final Level level, @PluginAttribute("name") final String loggerName,
+ // @formatter:off
+ final Level level,
+ @PluginAttribute("name") final String loggerName,
final String includeLocation,
final AppenderRef[] refs,
- final Property[] properties, @PluginConfiguration final Configuration config,
+ final Property[] properties,
+ @PluginConfiguration final Configuration config,
final Filter filter) {
+ // @formatter:on
if (loggerName == null) {
LOGGER.error("Loggers cannot be configured without a name");
return null;
@@ -446,6 +450,7 @@ public class LoggerConfig extends AbstractFilterable {
*/
@PluginFactory
public static LoggerConfig createLogger(
+ // @formatter:off
@PluginAttribute(value = "additivity", defaultBoolean = true) final boolean additivity,
@PluginAttribute("level") final Level level,
@Required(message = "Loggers cannot be configured without a name") @PluginAttribute("name") final String loggerName,
@@ -454,6 +459,7 @@ public class LoggerConfig extends AbstractFilterable {
@PluginElement("Properties") final Property[] properties,
@PluginConfiguration final Configuration config,
@PluginElement("Filter") final Filter filter
+ // @formatter:on
) {
final String name = loggerName.equals(ROOT) ? Strings.EMPTY : loggerName;
return new LoggerConfig(name, Arrays.asList(refs), filter, level, additivity, properties, config,