Package org.yamcs
Class LoggingUtils
- java.lang.Object
-
- org.yamcs.LoggingUtils
-
public class LoggingUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoggingUtils.ArrayLogHandler
-
Constructor Summary
Constructors Constructor Description LoggingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigureLogging(Level level)static voidenableTracing()use to enable logging during junit tests debugging.static LoggingUtils.ArrayLogHandlerstartCapture(Class<?> clazz)Start capturing all the logs generated by the class into the ArrayLogHandler.static voidstopCapture(Class<?> clazz)
-
-
-
Method Detail
-
configureLogging
public static void configureLogging(Level level)
-
enableTracing
public static void enableTracing()
use to enable logging during junit tests debugging.
-
startCapture
public static LoggingUtils.ArrayLogHandler startCapture(Class<?> clazz)
Start capturing all the logs generated by the class into the ArrayLogHandler.The capture should be stopped by calling
stopCapture(java.lang.Class<?>)
-
stopCapture
public static void stopCapture(Class<?> clazz)
-
-