public class SetTraceLevelTask extends ComponentBasedTask
A Rhino management sub task for setting the trace level of components.
Warning
|
This ant task has been deprecated, since it uses a ComponentID to identify a notification source (which is not compatible with the changes made to the tracing subsystem in SLEE 1.1).
It has been replaced with SetTracerLevelTask .
|
Attribute | Description | Required |
---|---|---|
failonerror |
Flag to control failure behaviour.
If 'true', the sub task will throw a |
No. default value is taken from the Rhino management parent task. |
componentid |
Canonical name of the component. |
Only required/allowed if the |
type |
Indicates the type of component referenced by |
Only required/allowed if |
level |
Requested trace level, can be one of 'finest', 'finer', 'fine', 'config', 'info', 'warning', 'severe', 'off'. |
Yes. |
Element | Description | Required |
---|---|---|
component |
Identifies the component.
See |
Only required/allowed if the |
Component Types
The following names are valid identifiers for a component type in the type
attribute of the settracelevel task or a component
nested element.
pspec - profile specification
ra - resource adaptor
service - service
sbb - sbb
This task will never throw a NonFatalBuildException
. It will always fail (throw a BuildException
) on errors.
component
client, failOnError
Constructor and Description |
---|
SetTraceLevelTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute() |
static Level |
getTraceLevelFromString(String level) |
void |
setComponentID(String componentID) |
void |
setLevel(String level) |
void |
setType(String type) |
protected void |
validateParameters() |
addComponent, findComponent
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public static Level getTraceLevelFromString(String level) throws InvalidArgumentException
InvalidArgumentException
public void setComponentID(String componentID)
public void setLevel(String level)
public void setType(String type)