uk.ac.bristol.star.cdf.util
Class LogUtil

java.lang.Object
  extended by 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
static class LogUtil.LineFormatter
          Compact log record formatter.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)