public static final class CommandLine.Tracer extends Object
CommandLine.tracer()
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg,
Object... params)
Prints the specified message if the current trace level is DEBUG or higher.
|
CommandLine.TraceLevel |
getLevel()
Returns the trace level that needs to be matched or exceeded for internal tracing statements to be printed.
|
void |
info(String msg,
Object... params)
Prints the specified message if the current trace level is INFO or higher.
|
boolean |
isDebug()
Returns whether the current trace level is DEBUG (the highest).
|
boolean |
isInfo()
Returns whether the current trace level is INFO or higher.
|
boolean |
isOff()
Returns whether the current trace level is OFF (the lowest).
|
boolean |
isWarn()
Returns whether the current trace level is WARN or higher.
|
void |
setLevel(CommandLine.TraceLevel level)
Sets the trace level that needs to be matched or exceeded for internal tracing statements to be printed.
|
String |
toString() |
void |
warn(String msg,
Object... params)
Prints the specified message if the current trace level is WARN or higher.
|
public CommandLine.TraceLevel getLevel()
"picocli.trace"
is set to another valid TraceLevel
value.public void setLevel(CommandLine.TraceLevel level)
"picocli.trace"
is set to another valid TraceLevel
value.level
- the trace level that needs to be matched or exceeded for tracing statements to be printedpublic boolean isDebug()
public boolean isInfo()
public boolean isWarn()
public boolean isOff()
public void warn(String msg, Object... params)
msg
- the message to print; may use String.format(String, Object...)
syntaxparams
- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero.Formatter
public void info(String msg, Object... params)
msg
- the message to print; may use String.format(String, Object...)
syntaxparams
- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero.Formatter
public void debug(String msg, Object... params)
msg
- the message to print; may use String.format(String, Object...)
syntaxparams
- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero.Formatter