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 TypeMethodDescriptionvoidadd(OutputStream stream, Level level) Adds the given stream to logging.voidclear()Removes all streams from logging.voidconfig.voidfine.voidfiner.voidfinest.static LogUtilsgetInstance.voidinfo.voidsetLevel(OutputStream stream, Level level) Sets the logging level for the given stream.voidsevere.voidwarning.
-
Method Details
-
getInstance
getInstance.
- Returns:
- Ibid.
-
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
severe.
- Parameters:
s- aStringobject
-
warning
warning.
- Parameters:
s- aStringobject
-
config
config.
- Parameters:
s- aStringobject
-
info
info.
- Parameters:
s- aStringobject
-
fine
fine.
- Parameters:
s- aStringobject
-
finer
finer.
- Parameters:
s- aStringobject
-
finest
finest.
- Parameters:
s- aStringobject
-