org.apache.logging.log4j.message.FormattedMessageFactory Java Examples
The following examples show how to use
org.apache.logging.log4j.message.FormattedMessageFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestLogger.java From strimzi-kafka-operator with Apache License 2.0 | 4 votes |
public TestLogger(Logger delegate) { super("test", new FormattedMessageFactory()); this.delegate = delegate; }
Example #2
Source File: ApimanLog4j2LogDelegate.java From apiman with Apache License 2.0 | 4 votes |
ApimanLog4j2LogDelegate(final String name) { logger = (ExtendedLogger) org.apache.logging.log4j.LogManager.getLogger(name, new FormattedMessageFactory()); }
Example #3
Source File: Log4j2LoggerFactory.java From apiman with Apache License 2.0 | 4 votes |
@Override public IApimanLogger createLogger(String name) { return new Log4j2LoggerImpl(LogManager.getLogger(name, new FormattedMessageFactory())); }
Example #4
Source File: Log4j2LoggerFactory.java From apiman with Apache License 2.0 | 4 votes |
@Override public IApimanLogger createLogger(Class<?> klazz) { return new Log4j2LoggerImpl(LogManager.getLogger(klazz, new FormattedMessageFactory())); }