Package org.apache.logging.log4j.message
@Export
@Version("2.24.1")
package org.apache.logging.log4j.message
Public Message Types used for Log4j 2. Users may implement their own Messages.
-
ClassDescriptionProvides an abstract superclass for
MessageFactory2
implementations with default implementations (and forMessageFactory
by extension).Annotation that signals to asynchronous logging components that messages of this type can safely be passed to a background thread without callingMessage.getFormattedMessage()
first.Default factory for flow messages.Entry flow messagesExit flow messagesFlow messagesCreates flow messages.Handles messages that contain a format String.Provides some level of compatibility with Log4j 1.x and convenience but is not the recommended way to Localize messages.Message that is interested in the name of the Logger.Represents a Message that consists of a Map.When set as the format specifier causes the Map to be formatted as XML.An interface for various Message implementations that can be logged.A Message that is a collection of Messages.Creates messages.Creates messages.Handles messages that consist of a format string conforming to java.text.MessageFormat.A Message that can render itself in more than one way.Handles messages that contain an Object[].Handles messages that contain an Object.An operation that accepts two input arguments and returns no result.AMessage
accepting argument placeholders in the formatting pattern.Allows message parameters to be iterated over without any allocation or memory copies.Messages implementing this interface are reused between logging calls.Implementation of theMessageFactory
interface that avoids allocating temporary objects where possible.Mutable Message wrapper around an Object message.Reusable parameterized message.Mutable Message wrapper around a String message.The simplest possible implementation of Message.Handles messages that consist of a format string conforming toFormatter
.AStringMapMessage
typed toString
-only values.A collection of StructuredDataMessages.The StructuredData identifier.Represents a Message that conforms to an RFC 5424 StructuredData element along with the syslog message.Supported formats.Captures information about all running Threads.Factory to create Thread information.Interface used to print basic or extended thread information.Messages that use this interface will cause the timestamp in the message to be used instead of the timestamp in the LogEvent.