Package uk.ac.bristol.star.cdf.util
Class LogUtil
java.lang.Object
uk.ac.bristol.star.cdf.util.LogUtil
Utilities for controlling logging level.
- Since:
- 21 Jun 2013
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Compact log record formatter. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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)
-