Uses of Interface
org.apache.logging.log4j.message.MessageFactory
-
Packages that use MessageFactory Package Description org.apache.logging.log4j Public API for Log4j 2.org.apache.logging.log4j.core Implementation of Log4j 2.org.apache.logging.log4j.core.async Provides Asynchronous Logger classes and interfaces for low-latency logging.org.apache.logging.log4j.message Public Message Types used for Log4j 2.org.apache.logging.log4j.simple Simple logging implementation.org.apache.logging.log4j.spi Internal interfaces and classes to be used by authors of logging implementations or for internal use by API classes.org.apache.logging.log4j.util Internal utility classes for the Log4j 2 API.org.apache.logging.slf4j SLF4J support. -
-
Uses of MessageFactory in org.apache.logging.log4j
Methods in org.apache.logging.log4j with type parameters of type MessageFactory Modifier and Type Method Description <MF extends MessageFactory>
MFLogger. getMessageFactory()Gets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.Methods in org.apache.logging.log4j with parameters of type MessageFactory Modifier and Type Method Description static LoggerLogManager. getLogger(java.lang.Class<?> clazz, MessageFactory messageFactory)Returns a Logger using the fully qualified name of the Class as the Logger name.static LoggerLogManager. getLogger(java.lang.Object value, MessageFactory messageFactory)Returns a Logger using the fully qualified class name of the value as the Logger name.static LoggerLogManager. getLogger(java.lang.String name, MessageFactory messageFactory)Returns a Logger with the specified name.static LoggerLogManager. getLogger(MessageFactory messageFactory)Returns a Logger with the name of the calling class. -
Uses of MessageFactory in org.apache.logging.log4j.core
Methods in org.apache.logging.log4j.core with parameters of type MessageFactory Modifier and Type Method Description LoggerLoggerContext. getLogger(java.lang.String name, MessageFactory messageFactory)Obtains a Logger from the Context.booleanLoggerContext. hasLogger(java.lang.String name, MessageFactory messageFactory)Determines if the specified Logger exists.protected LoggerLoggerContext. newInstance(LoggerContext ctx, java.lang.String name, MessageFactory messageFactory)Method parameters in org.apache.logging.log4j.core with type arguments of type MessageFactory Modifier and Type Method Description booleanLoggerContext. hasLogger(java.lang.String name, java.lang.Class<? extends MessageFactory> messageFactoryClass)Determines if the specified Logger exists.Constructors in org.apache.logging.log4j.core with parameters of type MessageFactory Constructor Description Logger(LoggerContext context, java.lang.String name, MessageFactory messageFactory)The constructor.LoggerProxy(java.lang.String name, MessageFactory messageFactory) -
Uses of MessageFactory in org.apache.logging.log4j.core.async
Methods in org.apache.logging.log4j.core.async with parameters of type MessageFactory Modifier and Type Method Description protected LoggerAsyncLoggerContext. newInstance(LoggerContext ctx, java.lang.String name, MessageFactory messageFactory)Constructors in org.apache.logging.log4j.core.async with parameters of type MessageFactory Constructor Description AsyncLogger(LoggerContext context, java.lang.String name, MessageFactory messageFactory, org.apache.logging.log4j.core.async.AsyncLoggerDisruptor loggerDisruptor)Constructs anAsyncLoggerwith the specified context, name and message factory. -
Uses of MessageFactory in org.apache.logging.log4j.message
Subinterfaces of MessageFactory in org.apache.logging.log4j.message Modifier and Type Interface Description interfaceMessageFactory2Creates messages.Classes in org.apache.logging.log4j.message that implement MessageFactory Modifier and Type Class Description classAbstractMessageFactoryProvides an abstract superclass forMessageFactory2implementations with default implementations (and forMessageFactoryby extension).classFormattedMessageFactoryclassLocalizedMessageFactoryclassMessageFormatMessageFactoryclassParameterizedMessageFactoryclassParameterizedNoReferenceMessageFactoryclassReusableMessageFactoryImplementation of theMessageFactoryinterface that avoids allocating temporary objects where possible.classSimpleMessageFactoryclassStringFormatterMessageFactory -
Uses of MessageFactory in org.apache.logging.log4j.simple
Methods in org.apache.logging.log4j.simple with parameters of type MessageFactory Modifier and Type Method Description ExtendedLoggerSimpleLoggerContext. getLogger(java.lang.String name, MessageFactory messageFactory)booleanSimpleLoggerContext. hasLogger(java.lang.String name, MessageFactory messageFactory)Method parameters in org.apache.logging.log4j.simple with type arguments of type MessageFactory Modifier and Type Method Description booleanSimpleLoggerContext. hasLogger(java.lang.String name, java.lang.Class<? extends MessageFactory> messageFactoryClass)Constructors in org.apache.logging.log4j.simple with parameters of type MessageFactory Constructor Description SimpleLogger(java.lang.String name, Level defaultLevel, boolean showLogName, boolean showShortLogName, boolean showDateTime, boolean showContextMap, java.lang.String dateTimeFormat, MessageFactory messageFactory, PropertiesUtil props, java.io.PrintStream stream) -
Uses of MessageFactory in org.apache.logging.log4j.spi
Classes in org.apache.logging.log4j.spi that implement MessageFactory Modifier and Type Class Description classMessageFactory2AdapterAdapts a legacy MessageFactory to the new MessageFactory2 interface.Fields in org.apache.logging.log4j.spi with type parameters of type MessageFactory Modifier and Type Field Description static java.lang.Class<? extends MessageFactory>AbstractLogger. DEFAULT_MESSAGE_FACTORY_CLASSThe default MessageFactory class.Methods in org.apache.logging.log4j.spi with type parameters of type MessageFactory Modifier and Type Method Description <MF extends MessageFactory>
MFAbstractLogger. getMessageFactory()Methods in org.apache.logging.log4j.spi that return MessageFactory Modifier and Type Method Description MessageFactoryMessageFactory2Adapter. getOriginal()Methods in org.apache.logging.log4j.spi with parameters of type MessageFactory Modifier and Type Method Description static voidAbstractLogger. checkMessageFactory(ExtendedLogger logger, MessageFactory messageFactory)Checks that the message factory a logger was created with is the same as the given messageFactory.static java.lang.StringLoggerContextKey. create(java.lang.String name, MessageFactory messageFactory)Deprecated.ExtendedLoggerLoggerContext. getLogger(java.lang.String name, MessageFactory messageFactory)Returns an ExtendedLogger.TLoggerRegistry. getLogger(java.lang.String name, MessageFactory messageFactory)Returns an ExtendedLogger.booleanLoggerContext. hasLogger(java.lang.String name, MessageFactory messageFactory)Detects if a Logger with the specified name and MessageFactory exists.booleanLoggerRegistry. hasLogger(java.lang.String name, MessageFactory messageFactory)Detects if a Logger with the specified name and MessageFactory exists.voidLoggerRegistry. putIfAbsent(java.lang.String name, MessageFactory messageFactory, T logger)Method parameters in org.apache.logging.log4j.spi with type arguments of type MessageFactory Modifier and Type Method Description static java.lang.StringLoggerContextKey. create(java.lang.String name, java.lang.Class<? extends MessageFactory> messageFactoryClass)Deprecated.booleanLoggerContext. hasLogger(java.lang.String name, java.lang.Class<? extends MessageFactory> messageFactoryClass)Detects if a Logger with the specified name and MessageFactory type exists.booleanLoggerRegistry. hasLogger(java.lang.String name, java.lang.Class<? extends MessageFactory> messageFactoryClass)Detects if a Logger with the specified name and MessageFactory type exists.Constructors in org.apache.logging.log4j.spi with parameters of type MessageFactory Constructor Description AbstractLogger(java.lang.String name, MessageFactory messageFactory)Creates a new named logger with a particularMessageFactory.ExtendedLoggerWrapper(ExtendedLogger logger, java.lang.String name, MessageFactory messageFactory)Constructor that wraps and existing Logger.MessageFactory2Adapter(MessageFactory wrapped) -
Uses of MessageFactory in org.apache.logging.log4j.util
Methods in org.apache.logging.log4j.util with parameters of type MessageFactory Modifier and Type Method Description static MessageLambdaUtil. getMessage(Supplier<?> supplier, MessageFactory messageFactory)Returns a Message, either the value supplied by the specified function, or a new Message created by the specified Factory. -
Uses of MessageFactory in org.apache.logging.slf4j
Methods in org.apache.logging.slf4j with parameters of type MessageFactory Modifier and Type Method Description ExtendedLoggerSLF4JLoggerContext. getLogger(java.lang.String name, MessageFactory messageFactory)booleanSLF4JLoggerContext. hasLogger(java.lang.String name, MessageFactory messageFactory)Method parameters in org.apache.logging.slf4j with type arguments of type MessageFactory Modifier and Type Method Description booleanSLF4JLoggerContext. hasLogger(java.lang.String name, java.lang.Class<? extends MessageFactory> messageFactoryClass)Constructors in org.apache.logging.slf4j with parameters of type MessageFactory Constructor Description SLF4JLogger(java.lang.String name, MessageFactory messageFactory, org.slf4j.Logger logger)
-