Class InternalAsyncUtil
- java.lang.Object
-
- org.apache.logging.log4j.core.async.InternalAsyncUtil
-
public class InternalAsyncUtil extends java.lang.ObjectHelper 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 private static booleancanFormatMessageInBackground(Message message)static MessagemakeMessageImmutable(Message msg)Returns the specified message, with its content frozen unless system propertylog4j.format.msg.asyncis 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.asyncis 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
-
canFormatMessageInBackground
private static boolean canFormatMessageInBackground(Message message)
-
-