public class TraceSettings extends Object implements ConfigurationChangeListener<DebugTargetCfg>
Modifier and Type | Field and Description |
---|---|
static TraceSettings |
DISABLED
A TraceSettings object representing a fully disabled trace state.
|
Constructor and Description |
---|
TraceSettings()
Construct new trace settings with default values.
|
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(DebugTargetCfg config)
Applies the configuration changes to this change listener.
|
org.opends.server.loggers.TraceSettings.Level |
getLevel()
Get the level of this setting.
|
int |
getStackDepth()
Get the level of stack frames to include.
|
boolean |
isConfigurationChangeAcceptable(DebugTargetCfg config,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is
acceptable to this change listener.
|
boolean |
isIncludeCause()
Get whether the cause exception is included in exception messages.
|
boolean |
isNoArgs()
Get whether method arguments should be logged.
|
boolean |
isNoRetVal()
Get whether method return values should be logged.
|
protected static TraceSettings |
parseTraceSettings(String value)
Parse trace settings from the string representation.
|
public static final TraceSettings DISABLED
public TraceSettings()
public boolean isConfigurationChangeAcceptable(DebugTargetCfg config, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<DebugTargetCfg>
config
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is
acceptable, or false
if it is not.public ConfigChangeResult applyConfigurationChange(DebugTargetCfg config)
applyConfigurationChange
in interface ConfigurationChangeListener<DebugTargetCfg>
config
- The new configuration containing the changes.protected static TraceSettings parseTraceSettings(String value)
value
- the trace settings string to be parsed.public org.opends.server.loggers.TraceSettings.Level getLevel()
public boolean isNoArgs()
public boolean isNoRetVal()
public int getStackDepth()
public boolean isIncludeCause()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.