Class LogUtil

java.lang.Object
uk.ac.bristol.star.cdf.util.LogUtil

public class LogUtil extends Object
Utilities for controlling logging level.
Since:
21 Jun 2013
  • 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)