Package uk.ac.bristol.star.cdf.util
Class LogUtil
- java.lang.Object
-
- uk.ac.bristol.star.cdf.util.LogUtil
-
public class LogUtil extends java.lang.Object
Utilities for controlling logging level.- Since:
- 21 Jun 2013
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogUtil.LineFormatter
Compact log record formatter.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setVerbosity(int verbose)
Sets the logging verbosity of the root logger and ensures that logging messages at that level are reported to the console.
-
-
-
Method Detail
-
setVerbosity
public static void setVerbosity(int verbose)
Sets the logging verbosity of the root logger and ensures that logging messages at that level are reported to the console. You'd think this would be simple, but it requires jumping through hoops.- Parameters:
verbose
- 0 for normal, positive for more, negative for less (0=INFO, +1=CONFIG, -1=WARNING)
-
-