Uses of Interface
org.apache.logging.log4j.message.MessageFactory
-
-
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(Class<?> clazz, MessageFactory messageFactory)Returns a Logger using the fully qualified name of the Class as the Logger name.static LoggerLogManager. getLogger(Object value, MessageFactory messageFactory)Returns a Logger using the fully qualified class name of the value as the Logger name.static LoggerLogManager. getLogger(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(String name, @Nullable MessageFactory messageFactory)Obtains a logger from the context.booleanLoggerContext. hasLogger(String name, @Nullable MessageFactory messageFactory)Determines if the specified Logger exists.protected LoggerLoggerContext. newInstance(LoggerContext context, String name, MessageFactory messageFactory)Callback to create a new logger.Method parameters in org.apache.logging.log4j.core with type arguments of type MessageFactory Modifier and Type Method Description booleanLoggerContext. hasLogger(String name, 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, String name, MessageFactory messageFactory)Constructs an instance using the givenLoggerContext, logger name, andMessageFactory.Logger(LoggerContext context, String name, MessageFactory messageFactory, FlowMessageFactory flowMessageFactory)The canonical constructor.LoggerProxy(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, String name, MessageFactory messageFactory) -
Uses of MessageFactory in org.apache.logging.log4j.core.util.internal
Methods in org.apache.logging.log4j.core.util.internal with parameters of type MessageFactory Modifier and Type Method Description LoggerInternalLoggerRegistry. computeIfAbsent(String name, MessageFactory messageFactory, BiFunction<String,MessageFactory,Logger> loggerSupplier)@Nullable LoggerInternalLoggerRegistry. getLogger(String name, MessageFactory messageFactory)Returns the logger associated with the given name and message factory.booleanInternalLoggerRegistry. hasLogger(String name, MessageFactory messageFactory)Checks if a logger associated with the given name and message factory exists.Method parameters in org.apache.logging.log4j.core.util.internal with type arguments of type MessageFactory Modifier and Type Method Description LoggerInternalLoggerRegistry. computeIfAbsent(String name, MessageFactory messageFactory, BiFunction<String,MessageFactory,Logger> loggerSupplier)booleanInternalLoggerRegistry. hasLogger(String name, Class<? extends MessageFactory> messageFactoryClass)Checks if a logger associated with the given name and message factory type exists. -
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(String name, @Nullable MessageFactory messageFactory)booleanSimpleLoggerContext. hasLogger(String name, @Nullable MessageFactory messageFactory)Method parameters in org.apache.logging.log4j.simple with type arguments of type MessageFactory Modifier and Type Method Description booleanSimpleLoggerContext. hasLogger(String name, Class<? extends MessageFactory> messageFactoryClass)Constructors in org.apache.logging.log4j.simple with parameters of type MessageFactory Constructor Description SimpleLogger(String name, Level defaultLevel, boolean showLogName, boolean showShortLogName, boolean showDateTime, boolean showContextMap, String dateTimeFormat, MessageFactory messageFactory, PropertiesUtil props, 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 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)Deprecated.As of version2.25.0, planned to be removed!static StringLoggerContextKey. create(String name, MessageFactory messageFactory)Deprecated.default ExtendedLoggerLoggerContext. getLogger(Class<?> cls, @Nullable MessageFactory messageFactory)Gets an ExtendedLogger using the fully qualified name of the Class as the Logger name.ExtendedLoggerLoggerContext. getLogger(String name, @Nullable MessageFactory messageFactory)Gets an ExtendedLogger.@Nullable TLoggerRegistry. getLogger(String name, @Nullable MessageFactory messageFactory)Returns the logger associated with the given name and message factory.booleanLoggerContext. hasLogger(String name, @Nullable MessageFactory messageFactory)Tests if a Logger with the specified name and MessageFactory exists.booleanLoggerRegistry. hasLogger(String name, @Nullable MessageFactory messageFactory)Checks if a logger associated with the given name and message factory exists.voidLoggerRegistry. putIfAbsent(String name, @Nullable MessageFactory messageFactory, T logger)Registers the provided logger.Method parameters in org.apache.logging.log4j.spi with type arguments of type MessageFactory Modifier and Type Method Description static StringLoggerContextKey. create(String name, Class<? extends MessageFactory> messageFactoryClass)Deprecated.booleanLoggerContext. hasLogger(String name, Class<? extends MessageFactory> messageFactoryClass)Tests if a Logger with the specified name and MessageFactory type exists.booleanLoggerRegistry. hasLogger(String name, Class<? extends MessageFactory> messageFactoryClass)Checks if a logger associated with the given name and message factory type exists.Constructors in org.apache.logging.log4j.spi with parameters of type MessageFactory Constructor Description AbstractLogger(String name, MessageFactory messageFactory)Constructs an instance using the provided name andMessageFactory.AbstractLogger(String name, MessageFactory messageFactory, FlowMessageFactory flowMessageFactory)The canonical constructor.ExtendedLoggerWrapper(ExtendedLogger logger, String name, MessageFactory messageFactory)Constructor that wraps and existing Logger.MessageFactory2Adapter(MessageFactory wrapped) -
Uses of MessageFactory in org.apache.logging.log4j.status
Constructors in org.apache.logging.log4j.status with parameters of type MessageFactory Constructor Description StatusLogger(String name, MessageFactory messageFactory, StatusLogger.Config config, StatusConsoleListener fallbackListener)Constructs an instance using given properties. -
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.
-