Class TestLoggers

java.lang.Object
org.elasticsearch.common.logging.TestLoggers

public class TestLoggers extends Object
  • Constructor Details

    • TestLoggers

      public TestLoggers()
  • Method Details

    • runWithLoggersRestored

      public static void runWithLoggersRestored(Runnable task)
      Util to run a task with the original logger context restored afterwards. This will reset loggers to their previous log levels and remove any additional loggers configured while running task.