code: public synchronized void resetLogger() {
          Logger.appenderList.clear();
          Logger.stopWatch.stop();
          Logger.stopWatch.reset();
          Logger.firstLogEvent = true;
      }
docs: Reset the Logger, i.e. remove all appenders and set the log level to the
  default level.