Package org.codehaus.groovy.tools.shell
Class IO.Verbosity
java.lang.Object
org.codehaus.groovy.tools.shell.IO.Verbosity
- Enclosing class:
- IO
Verbosity for simple logging: QUIET, INFO, VERBOSE, DEBUG
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IO.VerbosityDebug-level output.static final IO.VerbosityNormal informational output.final StringThe symbolic name of this verbosity level.static final IO.VerbosityMinimal output.static final IO.VerbosityExtra informational output. -
Method Summary
Modifier and TypeMethodDescriptionstatic IO.VerbosityResolves a verbosity level by name.toString()Returns the symbolic name of this verbosity level.
-
Field Details
-
QUIET
Minimal output. -
INFO
Normal informational output. -
VERBOSE
Extra informational output. -
DEBUG
Debug-level output. -
name
The symbolic name of this verbosity level.
-
-
Method Details
-
toString
Returns the symbolic name of this verbosity level. -
forName
Resolves a verbosity level by name.- Parameters:
name- the name to resolve- Returns:
- the matching verbosity level
- Throws:
IllegalArgumentException- if the name does not match a known level
-