diff --git a/spring-core/src/main/java/org/springframework/core/log/LogDelegateFactory.java b/spring-core/src/main/java/org/springframework/core/log/LogDelegateFactory.java index 074da5d39f0..6097a7f53e4 100644 --- a/spring-core/src/main/java/org/springframework/core/log/LogDelegateFactory.java +++ b/spring-core/src/main/java/org/springframework/core/log/LogDelegateFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,15 +44,15 @@ public final class LogDelegateFactory { /** * Create a composite logger that delegates to a primary or falls back on a * secondary logger if logging for the primary logger is not enabled. - *
This may be used for fallback logging from lower level packages that - * logically should log together with some higher level package but the two + *
This may be used for fallback logging from lower-level packages that
+ * logically should log together with some higher-level package but the two
* don't happen to share a suitable parent package (e.g. logging for the web
- * and lower level http and codec packages). For such cases the primary,
- * class-based logger can be wrapped with a shared fallback logger.
+ * and lower-level http and codec packages). For such cases the primary
+ * (class-based) logger can be wrapped with a shared fallback logger.
* @param primaryLogger primary logger to try first
* @param secondaryLogger secondary logger
- * @param tertiaryLoggers optionally, more fallback loggers
- * @return the resulting logger to use
+ * @param tertiaryLoggers optional vararg of further fallback loggers
+ * @return the resulting composite logger for the related categories
*/
public static Log getCompositeLog(Log primaryLogger, Log secondaryLogger, Log... tertiaryLoggers) {
List Assists with the following annotations:
*
*