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 Details

    • InternalAsyncUtil

      public InternalAsyncUtil()
  • Method Details

    • makeMessageImmutable

      public static Message makeMessageImmutable(Message msg)
      Returns the specified message, with its content frozen unless system property log4j.format.msg.async is true or the message class is annotated with AsynchronouslyFormattable.
      Parameters:
      msg - the message object to inspect, modify and return
      Returns:
      Returns the specified message, with its content frozen