@Test public void resetDebug() throws Exception { initializeProvider(DEBUG_CONFIG_FOR_TEST); IDebug debug = provider.getInstance(logName); debug.message("Should appear in log", null); checkLogFileStatus(false, DebugConstants.CONFIG_DEBUG_MERGEALL_FILE); checkLogFileStatus(true, logName); SystemPropertiesManager.initializeProperties(DebugConstants.CONFIG_DEBUG_LEVEL, DebugLevel.ERROR.getName()); debug.resetDebug(MERGE_ALL_ON); debug.error("Should appear in log", null); Assert.assertEquals(debug.getState(), DebugLevel.ERROR.getLevel(), "Debug level state"); checkLogFileStatus(true, DebugConstants.CONFIG_DEBUG_MERGEALL_FILE); }
public void resetDebug(String mf) { getDebugServiceInstance().resetDebug(mf); }
Debug { public void resetDebug(String mf) { getDebugServiceInstance().resetDebug(mf); } }
Debug { public void resetDebug(String mf) { getDebugServiceInstance().resetDebug(mf); } private  Debug(IDebug debugServiceInstance); }
Debug { public void resetDebug(String mf) { getDebugServiceInstance().resetDebug(mf); } private  Debug(IDebug debugServiceInstance); static synchronized Debug getInstance(String debugName); static Collection getInstances(); String getName(); boolean messageEnabled(); boolean warningEnabled(); boolean errorEnabled(); int getState(); void message(String msg); void message(String msg, Throwable t); void warning(String msg); void warning(String msg, Throwable t); void error(String msg); void error(String msg, Throwable t); void setDebug(int debugType); void resetDebug(String mf); void setDebug(String debugType); void destroy(); }
Debug { public void resetDebug(String mf) { getDebugServiceInstance().resetDebug(mf); } private  Debug(IDebug debugServiceInstance); static synchronized Debug getInstance(String debugName); static Collection getInstances(); String getName(); boolean messageEnabled(); boolean warningEnabled(); boolean errorEnabled(); int getState(); void message(String msg); void message(String msg, Throwable t); void warning(String msg); void warning(String msg, Throwable t); void error(String msg); void error(String msg, Throwable t); void setDebug(int debugType); void resetDebug(String mf); void setDebug(String debugType); void destroy(); static final int OFF; static final int ERROR; static final int WARNING; static final int MESSAGE; static final int ON; static final String STR_OFF; static final String STR_ERROR; static final String STR_WARNING; static final String STR_MESSAGE; static final String STR_ON; }