Package org.apache.uima.fit.testing.util
Class DisableLogging
java.lang.Object
org.apache.uima.fit.testing.util.DisableLogging
When you are running a suite of unit tests it is often nice to turn off logging. This class helps
you do this. However, it only works if logging is being done by the Java logger, not by, say,
log4j.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Level
Disable all logging.static void
enableLogging
(Level level) Enable all logging.
-
Method Details
-
disableLogging
Disable all logging.- Returns:
- The original logging level.
-
enableLogging
Enable all logging.- Parameters:
level
- The logging level to be restored. Usually this is the result returned by disableLogging().
-