public void remove(String key) { org.apache.log4j.MDC.remove(key); }
public void removeMdc(String key) { MDC.remove( key ); }
public void removeMdc(String key) { MDC.remove(key); }
@Override protected void remove(String key) { MDC.remove(key); }
/** * Returns if Log4j-over-SLF4J is actually working. Sometimes the API classes are present, but there's no SLF4J * implementation around. */ public static final boolean test() { org.apache.log4j.MDC.put(MDC_KEY, ""); try { return org.slf4j.MDC.get(MDC_KEY) != null; } finally { org.apache.log4j.MDC.remove(MDC_KEY); } }
@Override public void remove(String key) { org.apache.log4j.MDC.remove(key); } }
@Override protected void removeFromMdc(String key) { MDC.remove(key); } }
public void remove(String key) { MDC.remove(key); } }
/** * Clears any logging information that was cached for the purpose of * logging. */ private void clearLocationInfo() { MDC.remove(LOCATION_INFO); stackLocal.set(null); }
public static void clearAllUserInfo() { tlUser.remove(); tlLocale.remove(); MDC.remove(KEY_USER); }
@Override public void after( Match match, Result result ) { super.after( match, result ); MDC.remove( "prefix" ); }
@Override public void background( Background background ) { super.background( background ); LOG.info( "--------------------------------------------------------" ); MDC.put( "prefix", PREFIX_BACKGROUND ); // MDC.put( "scenarioId", scenarioOutline.getLine() ); LOG.info( "" ); MDC.remove( "prefix" ); }
@Override public void log(LogRecord record) { Set<Entry<String, String>> set = record.getMapEntrySet(); for (Entry<String, String> entry : set) { MDC.put(entry.getKey(), entry.getValue()); } logger.log(Level.toLevel(mapGWTLogLevelToImplLevel(record.getLevel())), record.getMessage(), record.getThrowable()); for (Entry<String, String> entry : set) { MDC.remove(entry.getKey()); } }
@Override public void scenarioOutline( ScenarioOutline scenarioOutline ) { super.scenarioOutline( scenarioOutline ); countScenario(); LOG.info( "--------------------------------------------------------" ); MDC.put( "prefix", PREFIX_SCENARIO ); MDC.put( "scenarioId", scenarioOutline.getLine() ); LOG.info( scenarioOutline.getName() ); MDC.remove( "prefix" ); }
@Override public void scenario( Scenario scenario ) { super.scenario( scenario ); countScenario(); LOG.info( "--------------------------------------------------------" ); MDC.put( "prefix", PREFIX_SCENARIO ); MDC.put( "scenarioId", scenario.getLine() ); LOG.info( scenario.getName() ); MDC.remove( "prefix" ); }