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).
Version:
$Id: $Id
Author:
josephramsey
  • Method Details

    • getInstance

      public static LogUtils getInstance()

      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)

      severe.

      Parameters:
      s - a String object
    • warning

      public void warning(String s)

      warning.

      Parameters:
      s - a String object
    • config

      public void config(String s)

      config.

      Parameters:
      s - a String object
    • info

      public void info(String s)

      info.

      Parameters:
      s - a String object
    • fine

      public void fine(String s)

      fine.

      Parameters:
      s - a String object
    • finer

      public void finer(String s)

      finer.

      Parameters:
      s - a String object
    • finest

      public void finest(String s)

      finest.

      Parameters:
      s - a String object