Class LogUtils

java.lang.Object
edu.cmu.tetrad.util.LogUtils

public class LogUtils extends Object
Sets up streams for logging via the Java logging API. To add a stream to the logging, call addStream(stream, level). The formatter will be a simple formatter that outputs the text of the logging messages only. To remove the stream, call removeStream(stream).
Author:
josephramsey
  • Method Details

    • getInstance

      public static LogUtils getInstance()
      Returns:
      Ibid.
    • add

      public void add(OutputStream stream, Level level)
      Adds the given stream to logging.
      Parameters:
      stream - The OutputStream to be added to logging.
      level - The level at which logging events will be printed.
    • setLevel

      public void setLevel(OutputStream stream, Level level)
      Sets the logging level for the given stream.
      Parameters:
      stream - The OutputStream whose level is to change.
      level - The new level.
    • clear

      public void clear()
      Removes all streams from logging.
    • severe

      public void severe(String s)
    • warning

      public void warning(String s)
    • config

      public void config(String s)
    • info

      public void info(String s)
    • fine

      public void fine(String s)
    • finer

      public void finer(String s)
    • finest

      public void finest(String s)