@Test public void testCreation() { InternalLogger logger = Log4J2LoggerFactory.INSTANCE.newInstance("foo"); assertTrue(logger instanceof Log4J2Logger); assertEquals("foo", logger.name()); }
@Override public InternalLogger newInstance(String name) { return new Log4J2Logger(LogManager.getLogger(name)); }
Log4J2LoggerFactory extends InternalLoggerFactory { @Override public InternalLogger newInstance(String name) { return new Log4J2Logger(LogManager.getLogger(name)); } }
Log4J2LoggerFactory extends InternalLoggerFactory { @Override public InternalLogger newInstance(String name) { return new Log4J2Logger(LogManager.getLogger(name)); } @Deprecated  Log4J2LoggerFactory(); }
Log4J2LoggerFactory extends InternalLoggerFactory { @Override public InternalLogger newInstance(String name) { return new Log4J2Logger(LogManager.getLogger(name)); } @Deprecated  Log4J2LoggerFactory(); @Override InternalLogger newInstance(String name); }
Log4J2LoggerFactory extends InternalLoggerFactory { @Override public InternalLogger newInstance(String name) { return new Log4J2Logger(LogManager.getLogger(name)); } @Deprecated  Log4J2LoggerFactory(); @Override InternalLogger newInstance(String name); static final InternalLoggerFactory INSTANCE; }