Class LoggingUtil

java.lang.Object
com.github.rlacher.sortbench.logging.LoggingUtil

public class LoggingUtil extends Object
Logging-related utility class.
  • Method Details

    • setFormatter

      public static void setFormatter(Formatter formatter)
      Applies a custom formatter to all handlers associated with the root logger.
      Parameters:
      formatter - The Formatter to apply.
      Throws:
      IllegalArgumentException - If formatter is null.
    • setLevel

      public static void setLevel(Level level)
      Sets the logging level for all handlers associated with the root logger.
      Parameters:
      level - The Level to set.
      Throws:
      IllegalArgumentException - If level is null.