This is an automated email from the ASF dual-hosted git repository. pkarwasz pushed a commit to branch doc/2.x/since-tag in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit a0820b3ac60a3dba7617d95a2b656fc7ccedb7d0 Author: Piotr P. Karwasz <[email protected]> AuthorDate: Sat Dec 28 16:59:50 2024 +0100 Document `log4j-api` changes in version 2.0.1 --- log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java | 1 + log4j-api/src/main/java/org/apache/logging/log4j/spi/Provider.java | 6 ++++++ .../src/main/java/org/apache/logging/log4j/util/Activator.java | 1 + .../src/main/java/org/apache/logging/log4j/util/LoaderUtil.java | 1 + 4 files changed, 9 insertions(+) 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 cdb91c5765..6c882eae42 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 @@ -43,6 +43,7 @@ public class LogManager { /** * Log4j's property to set to the fully qualified class name of a custom implementation of * {@link LoggerContextFactory}. + * @since 2.0.1 * @deprecated Replaced since 2.24.0 with {@value org.apache.logging.log4j.spi.Provider#PROVIDER_PROPERTY_NAME}. */ @Deprecated diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/spi/Provider.java b/log4j-api/src/main/java/org/apache/logging/log4j/spi/Provider.java index 4f15843e28..4b9a1b79c5 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/Provider.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/Provider.java @@ -48,6 +48,7 @@ public class Provider { /** * Property name to set for a Log4j 2 provider to specify the priority of this implementation. + * @since 2.0.1 * @deprecated since 2.24.0 */ @Deprecated @@ -55,6 +56,7 @@ public class Provider { /** * Property name to set to the implementation of {@link ThreadContextMap}. + * @since 2.0.1 * @deprecated since 2.24.0 */ @Deprecated @@ -62,6 +64,7 @@ public class Provider { /** * Property name to set to the implementation of {@link LoggerContextFactory}. + * @since 2.0.1 * @deprecated since 2.24.0 */ @Deprecated @@ -100,6 +103,7 @@ public class Provider { /** * Constructor used by the deprecated {@code META-INF/log4j-provider.properties} format. + * @since 2.0.1 * @deprecated since 2.24.0 */ @Deprecated @@ -194,6 +198,7 @@ public class Provider { * Loads the {@link LoggerContextFactory} class specified by this Provider. * * @return the LoggerContextFactory implementation class or {@code null} if unspecified or a loader error occurred. + * @since 2.0.1 */ public @Nullable Class<? extends LoggerContextFactory> loadLoggerContextFactory() { if (loggerContextFactoryClass != null) { @@ -254,6 +259,7 @@ public class Provider { * * @return the {@code ThreadContextMap} implementation class or {@code null} if unspecified or a loading error * occurred. + * @since 2.0.1 */ public @Nullable Class<? extends ThreadContextMap> loadThreadContextMap() { if (threadContextMapClass != null) { diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/Activator.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/Activator.java index 3cb55e9729..44766a18d3 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/util/Activator.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/Activator.java @@ -44,6 +44,7 @@ import org.osgi.framework.wiring.BundleWiring; * {@link org.apache.logging.log4j.spi.LoggerContextFactory} et al. that have corresponding * {@code META-INF/log4j-provider.properties} files. As with all OSGi BundleActivator classes, this class is not for * public use and is only useful in an OSGi framework environment. + * @since 2.0.1 */ @Header(name = Constants.BUNDLE_ACTIVATOR, value = "${@class}") @Header(name = Constants.BUNDLE_ACTIVATIONPOLICY, value = Constants.ACTIVATION_LAZY) diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java index 001ad3a5f5..718b00889a 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/LoaderUtil.java @@ -37,6 +37,7 @@ import org.apache.logging.log4j.status.StatusLogger; * @see RuntimePermission * @see Thread#getContextClassLoader() * @see ClassLoader#getSystemClassLoader() + * @since 2.0.1 */ @InternalApi public final class LoaderUtil {
