Class InternalAsyncUtil


  • public class InternalAsyncUtil
    extends java.lang.Object
    Helper class providing some async logging-related functionality.

    Consider this class private.

    • 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 property log4j.format.msg.async is true or the message class is annotated with AsynchronouslyFormattable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InternalAsyncUtil

        public InternalAsyncUtil()
    • Method Detail

      • 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