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).
- Author:
- Joseph Ramsey
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(OutputStream stream, Level level) Adds the given stream to logging.voidclear()Removes all streams from logging.voidvoidvoidvoidstatic LogUtilsvoidvoidsetLevel(OutputStream stream, Level level) Sets the logging level for the given stream.voidvoid
- 
Method Details- 
getInstance- Returns:
- Ibid.
 
- 
addAdds the given stream to logging.- Parameters:
- stream- The OutputStream to be added to logging.
- level- The level at which logging events will be printed.
 
- 
setLevelSets the logging level for the given stream.- Parameters:
- stream- The OutputStream whose level is to change.
- level- The new level.
 
- 
clearpublic void clear()Removes all streams from logging.
- 
severe
- 
warning
- 
config
- 
info
- 
fine
- 
finer
- 
finest
 
-