Class InternalAsyncUtil
- java.lang.Object
-
- org.apache.logging.log4j.core.async.InternalAsyncUtil
-
public class InternalAsyncUtil extends Object
Helper class providing some async logging-related functionality.Consider this class private.
-
-
Constructor Summary
Constructors Constructor Description InternalAsyncUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Message
makeMessageImmutable(Message msg)
Returns the specified message, with its content frozen unless system propertylog4j.format.msg.async
is true or the message class is annotated withAsynchronouslyFormattable
.
-
-
-
Method Detail
-
makeMessageImmutable
public static Message makeMessageImmutable(Message msg)
Returns the specified message, with its content frozen unless system propertylog4j.format.msg.async
is true or the message class is annotated withAsynchronouslyFormattable
.- Parameters:
msg
- the message object to inspect, modify and return- Returns:
- Returns the specified message, with its content frozen
-
-