public class LoggingPreferences
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LoggingPreferences() |
Modifier and Type | Method and Description |
---|---|
LoggingPreferences |
addPreferences(LoggingPreferences prefs)
Adds the given logging preferences giving them precedence over existing
preferences.
|
void |
enable(java.lang.String logType,
java.util.logging.Level level)
Enables logging for the given log type at the specified level and above.
|
java.util.Set<java.lang.String> |
getEnabledLogTypes() |
java.util.logging.Level |
getLevel(java.lang.String logType) |
public void enable(java.lang.String logType, java.util.logging.Level level)
logType
- String the logType. Can be any of LogType
.level
- Level
the level.public java.util.Set<java.lang.String> getEnabledLogTypes()
public java.util.logging.Level getLevel(java.lang.String logType)
logType
- The log type.Level
for the given LogType
if enabled.
Otherwise returns Level.OFF
.public LoggingPreferences addPreferences(LoggingPreferences prefs)
prefs
- The logging preferences to add.