@Test public void testStatusWithUnconfiguredContext() { Logger logger = lc.getLogger(LoggerContextTest.class); for (int i = 0; i < 3; i++) { logger.debug("test"); } logger = lc.getLogger("x.y.z"); for (int i = 0; i < 3; i++) { logger.debug("test"); } StatusManager sm = lc.getStatusManager(); assertTrue("StatusManager has recieved too many messages", sm.getCount() == 1); }
public final Logger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); }
LoggerContext extends ContextBase implements ILoggerFactory,
        LifeCycle { public final Logger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } }
LoggerContext extends ContextBase implements ILoggerFactory,
        LifeCycle { public final Logger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } LoggerContext(); }
LoggerContext extends ContextBase implements ILoggerFactory,
        LifeCycle { public final Logger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } LoggerContext(); @Override void putProperty(String key, String val); void putProperties(Properties props); @Override void setName(String name); final Logger getLogger(final Class<?> clazz); Logger getLogger(final String name); Logger exists(String name); List<Logger> getLoggerList(); LoggerContextVO getLoggerContextRemoteView(); void setPackagingDataEnabled(boolean packagingDataEnabled); boolean isPackagingDataEnabled(); @Override void reset(); TurboFilterList getTurboFilterList(); void addTurboFilter(TurboFilter newFilter); void resetTurboFilterList(); void addListener(LoggerContextListener listener); void removeListener(LoggerContextListener listener); List<LoggerContextListener> getCopyOfListenerList(); void start(); void stop(); @Override String toString(); int getMaxCallerDataDepth(); void setMaxCallerDataDepth(int maxCallerDataDepth); List<String> getFrameworkPackages(); }
LoggerContext extends ContextBase implements ILoggerFactory,
        LifeCycle { public final Logger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } LoggerContext(); @Override void putProperty(String key, String val); void putProperties(Properties props); @Override void setName(String name); final Logger getLogger(final Class<?> clazz); Logger getLogger(final String name); Logger exists(String name); List<Logger> getLoggerList(); LoggerContextVO getLoggerContextRemoteView(); void setPackagingDataEnabled(boolean packagingDataEnabled); boolean isPackagingDataEnabled(); @Override void reset(); TurboFilterList getTurboFilterList(); void addTurboFilter(TurboFilter newFilter); void resetTurboFilterList(); void addListener(LoggerContextListener listener); void removeListener(LoggerContextListener listener); List<LoggerContextListener> getCopyOfListenerList(); void start(); void stop(); @Override String toString(); int getMaxCallerDataDepth(); void setMaxCallerDataDepth(int maxCallerDataDepth); List<String> getFrameworkPackages(); static final boolean DEFAULT_PACKAGING_DATA; }