Top Deprecated By Reference
Apache Log4j API 2.22.0

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.apache.logging.log4j.Logger.entry()

Use traceEntry() instead which performs the same function.

org.apache.logging.log4j.Logger.entry(Object...
The parameters to the method.
params
)

Use traceEntry(String, Object...) instead which performs the same function.

org.apache.logging.log4j.Logger.exit()

Use traceExit() instead which performs the same function.

Returns:

the result.
org.apache.logging.log4j.Logger.exit
(R
The result being returned from the method call.
result
)

Use traceExit(Object) instead which performs the same function.

Returns:

The Marker with the specified name.
org.apache.logging.log4j.MarkerManager.getMarker
(final String
The name of the Marker.
name
,
final String
The name of the parent Marker.
parent
)

Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.

Returns:

The Marker with the specified name.
org.apache.logging.log4j.MarkerManager.getMarker
(final String
The name of the Marker.
name
,
final Marker
The parent Marker.
parent
)

Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.

org.apache.logging.log4j.message.ParameterizedMessage(final String
a formatting pattern
pattern
,
final String[]
arguments to be formatted
args
,
final Throwable throwable)

Use ParameterizedMessage(String, Object[], Throwable) instead

org.apache.logging.log4j.message.StructuredDataId(final String
The name portion of the id.
name
,
final int
The enterprise number.
enterpriseNumber
,
final String[]
The list of keys that are required for this id.
required
,
final String[]
The list of keys that are optional for this id.
optional
)

Use StructuredDataId(String, String, String[], String[]) instead.

org.apache.logging.log4j.message.StructuredDataId(final String
The name portion of the id.
name
,
final int
The enterprise number.
enterpriseNumber
,
final String[]
The list of keys that are required for this id.
required
,
final String[]
The list of keys that are optional for this id.
optional
,
final int
The maximum length of the StructuredData Id key.
maxLength
)

Use StructuredDataId(String, String, String[], String[], int) instead.

Returns:

a StructuredDataId.
org.apache.logging.log4j.message.StructuredDataId.makeId
(final String
The default id to use if this StructuredDataId doesn't have a name.
defaultId
,
final int
The enterprise number.
anEnterpriseNumber
)

Use StructuredDataId#makeId(String, String) instead

org.apache.logging.log4j.spi.AbstractLogger.enter(final String
The fully qualified class name of the caller.
fqcn
,
final String
The format String for the parameters.
format
,
final MessageSupplier...
The parameters to the method.
paramSuppliers
)

org.apache.logging.log4j.spi.AbstractLogger.enter(final String
The fully qualified class name of the caller.
fqcn
,
final MessageSupplier
The Supplier of the Message.
messageSupplier
)

org.apache.logging.log4j.spi.AbstractLogger.entry(final Object...
The parameters to the method.
params
)

org.apache.logging.log4j.spi.AbstractLogger.exit(final R
The result being returned from the method call.
result
)

org.apache.logging.log4j.spi.LoggerContextKey

with no replacement - no longer used

org.apache.logging.log4j.util.Supplier<
the type of values returned by this supplier
T
>