Package edu.cmu.tetrad.util
Class LogUtils
java.lang.Object
edu.cmu.tetrad.util.LogUtils
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 Summary
Modifier and TypeMethodDescriptionvoid
add
(OutputStream stream, Level level) Adds the given stream to logging.void
clear()
Removes all streams from logging.void
config.void
fine.void
finer.void
finest.static LogUtils
getInstance.void
info.void
setLevel
(OutputStream stream, Level level) Sets the logging level for the given stream.void
severe.void
warning.
-
Method Details
-
getInstance
-
add
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
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
-
warning
-
config
-
info
-
fine
-
finer
-
finest
-