Package org.elasticsearch.common.logging
Class TestLoggers
java.lang.Object
org.elasticsearch.common.logging.TestLoggers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Util to run a task with the original logger context restored afterwards.
-
Constructor Details
-
TestLoggers
public TestLoggers()
-
-
Method Details
-
runWithLoggersRestored
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.
-