Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a0820b3
Document `log4j-api` changes in version 2.0.1
ppkarwasz Dec 28, 2024
1ab0dbc
Document `log4j-api` changes in version 2.0.2
ppkarwasz Dec 28, 2024
fe8711d
Document `log4j-api` changes in version 2.3
ppkarwasz Dec 28, 2024
05ea3e7
Document `log4j-api` changes in version 2.4
ppkarwasz Dec 28, 2024
42660fa
Document `log4j-api` changes in version 2.5
ppkarwasz Dec 28, 2024
8742914
Document `log4j-api` changes in version 2.6
ppkarwasz Dec 28, 2024
40accd6
Document `log4j-api` changes in version 2.7
ppkarwasz Dec 28, 2024
d6fa8c8
Document `log4j-api` changes in version 2.8
ppkarwasz Dec 29, 2024
897b863
Document `log4j-api` changes in version 2.8.1
ppkarwasz Dec 29, 2024
c0daf9d
Document `log4j-api` changes in version 2.9.0
ppkarwasz Dec 29, 2024
b5fc323
Document `log4j-api` changes in version 2.9.1
ppkarwasz Dec 29, 2024
863032f
Document `log4j-api` changes in version 2.10.0
ppkarwasz Dec 29, 2024
7f6920a
Document `log4j-api` changes in version 2.11.0
ppkarwasz Dec 29, 2024
8835094
Document `log4j-api` changes in version 2.11.1
ppkarwasz Dec 29, 2024
285ddb4
Document `log4j-api` changes in version 2.11.2
ppkarwasz Dec 29, 2024
9b16b33
Document `log4j-api` changes in version 2.12.0
ppkarwasz Dec 29, 2024
6dfb86d
Document `log4j-api` changes in version 2.12.1
ppkarwasz Dec 29, 2024
477fd66
Document `log4j-api` changes in version 2.13.0
ppkarwasz Dec 29, 2024
776b27d
Document `log4j-api` changes in version 2.13.1
ppkarwasz Dec 29, 2024
ae89e82
Document `log4j-api` changes in version 2.14.0
ppkarwasz Dec 29, 2024
d5115bb
Document `log4j-api` changes in version 2.14.1
ppkarwasz Dec 29, 2024
6efd449
Document `log4j-api` changes in version 2.15.0
ppkarwasz Dec 29, 2024
6065945
Document `log4j-api` changes in version 2.17.2
ppkarwasz Dec 29, 2024
916dbc5
Document `log4j-api` changes in version 2.18.0
ppkarwasz Dec 29, 2024
1a79635
Document `log4j-api` changes in version 2.19.0
ppkarwasz Dec 29, 2024
8f5df03
Document `log4j-api` changes in version 2.20.0
ppkarwasz Dec 29, 2024
b3391ef
Document `log4j-api` changes in version 2.22.0
ppkarwasz Dec 29, 2024
42b1b1d
Document `log4j-api` changes in version 2.23.0
ppkarwasz Dec 29, 2024
17389cc
Document `log4j-api` changes in version 2.24.0
ppkarwasz Dec 29, 2024
4154dd8
Fix `entry()/exit()` deprecations
ppkarwasz Dec 30, 2024
d5c08cf
Remove `@since` tags from internal classes
ppkarwasz Dec 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

import java.io.ObjectInputFilter;

/**
* @since 2.11.0
*/
public class DefaultObjectInputFilter implements ObjectInputFilter {

private final ObjectInputFilter delegate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Extended interface to allow bridges between logging systems to convey the
* correct location information.
*
* @since 2.19.0
*/
public interface BridgeAware {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ public static CloseableThreadContext.Instance putAll(final Map<String, String> v
return new CloseableThreadContext.Instance().putAll(values);
}

/**
* @since 2.6
*/
public static class Instance implements AutoCloseable {

private int pushCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
/**
* Convenience to log {@link StructuredDataMessage}s.
*
* @deprecated {@link Logger} accepts {@link StructuredDataMessage}s, users should use to that instead.
* @deprecated Deprecated since 2.24.0.
* {@link Logger} accepts {@link StructuredDataMessage}s, users should use to that instead.
*/
@Deprecated
public final class EventLogger {
Expand Down
16 changes: 15 additions & 1 deletion log4j-api/src/main/java/org/apache/logging/log4j/LogBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
/**
* Interface for constructing log events before logging them. Instances of LogBuilders should only be created
* by calling one of the Logger methods that return a LogBuilder.
*
* @since 2.13.0
*/
public interface LogBuilder {
/** NOOP Logbuilder */
Expand Down Expand Up @@ -110,7 +112,7 @@ default void log(final Supplier<Message> messageSupplier) {}
*
* @param messageSupplier The supplier of the message to log.
* @return the message logger or {@code null} if no logging occurred.
* @since 2.20
* @since 2.20.0
*/
default Message logAndGet(final Supplier<Message> messageSupplier) {
return null;
Expand All @@ -128,6 +130,7 @@ default void log(final Object message) {}
* @param message the message to log; the format depends on the message factory.
* @param p0 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(final String message, final Object p0) {}
Expand All @@ -139,6 +142,7 @@ default void log(final String message, final Object p0) {}
* @param p0 parameter to the message.
* @param p1 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(final String message, final Object p0, final Object p1) {}
Expand All @@ -151,6 +155,7 @@ default void log(final String message, final Object p0, final Object p1) {}
* @param p1 parameter to the message.
* @param p2 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(final String message, final Object p0, final Object p1, final Object p2) {}
Expand All @@ -164,6 +169,7 @@ default void log(final String message, final Object p0, final Object p1, final O
* @param p2 parameter to the message.
* @param p3 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(final String message, final Object p0, final Object p1, final Object p2, final Object p3) {}
Expand All @@ -178,6 +184,7 @@ default void log(final String message, final Object p0, final Object p1, final O
* @param p3 parameter to the message.
* @param p4 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(
Expand All @@ -199,6 +206,7 @@ default void log(
* @param p4 parameter to the message.
* @param p5 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(
Expand All @@ -222,6 +230,7 @@ default void log(
* @param p5 parameter to the message.
* @param p6 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(
Expand All @@ -247,6 +256,7 @@ default void log(
* @param p6 parameter to the message.
* @param p7 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(
Expand Down Expand Up @@ -274,6 +284,7 @@ default void log(
* @param p7 parameter to the message.
* @param p8 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(
Expand Down Expand Up @@ -303,6 +314,7 @@ default void log(
* @param p8 parameter to the message.
* @param p9 parameter to the message.
*
* @since 2.13.1
* @see org.apache.logging.log4j.util.Unbox
*/
default void log(
Expand All @@ -320,6 +332,8 @@ default void log(

/**
* Causes all the data collected to be logged. Default implementatoin does nothing.
*
* @since 2.14.1
*/
default void log() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -297,6 +298,7 @@ protected static LoggerContext getContext(
* @param configLocation The URI for the configuration to use.
* @param name The LoggerContext name.
* @return a LoggerContext.
* @since 2.9.1
*/
protected static LoggerContext getContext(
final String fqcn,
Expand Down
Loading
Loading