org.apache.logging.log4j.spi.ExtendedLoggerWrapper Java Examples

The following examples show how to use org.apache.logging.log4j.spi.ExtendedLoggerWrapper. 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: Log4jLogger_impl.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
/**
 * create a new LogWrapper class for the specified source class
 * 
 * @param component
 *           specified source class
 */
private Log4jLogger_impl(Class<?> component) {
   super(component);

   coreLogger = (org.apache.logging.log4j.core.Logger) LogManager.getLogger( (null == component) 
                                    ?  "org.apache.uima"
                                    : component.getName());
   mf = coreLogger.getMessageFactory();
   
   logger = new ExtendedLoggerWrapper((AbstractLogger) coreLogger, coreLogger.getName(), mf);
}
 
Example #2
Source File: Log4j2AbstractLoggerImpl.java    From elasticsearch-jdbc with MIT License 4 votes vote down vote up
public Log4j2AbstractLoggerImpl(AbstractLogger abstractLogger) {
    log = new ExtendedLoggerWrapper(abstractLogger, abstractLogger.getName(), abstractLogger.getMessageFactory());
}
 
Example #3
Source File: Log4j2AbstractLoggerImpl.java    From mybaties with Apache License 2.0 4 votes vote down vote up
public Log4j2AbstractLoggerImpl(AbstractLogger abstractLogger) {
  log = new ExtendedLoggerWrapper(abstractLogger, abstractLogger.getName(), abstractLogger.getMessageFactory());
}
 
Example #4
Source File: Log4j2AbstractLoggerImpl.java    From mybatis with Apache License 2.0 4 votes vote down vote up
public Log4j2AbstractLoggerImpl(AbstractLogger abstractLogger) {
  log = new ExtendedLoggerWrapper(abstractLogger, abstractLogger.getName(), abstractLogger.getMessageFactory());
}