Enum CommandLine.TraceLevel
- java.lang.Object
-
- java.lang.Enum<CommandLine.TraceLevel>
-
- org.apache.logging.log4j.core.tools.picocli.CommandLine.TraceLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommandLine.TraceLevel>
- Enclosing class:
- CommandLine
private static enum CommandLine.TraceLevel extends java.lang.Enum<CommandLine.TraceLevel>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TraceLevel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled(CommandLine.TraceLevel other)
(package private) static CommandLine.TraceLevel
lookup(java.lang.String key)
private java.lang.String
prefix(java.lang.String msg)
private void
print(CommandLine.Tracer tracer, java.lang.String msg, java.lang.Object... params)
static CommandLine.TraceLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommandLine.TraceLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final CommandLine.TraceLevel OFF
-
WARN
public static final CommandLine.TraceLevel WARN
-
INFO
public static final CommandLine.TraceLevel INFO
-
DEBUG
public static final CommandLine.TraceLevel DEBUG
-
-
Method Detail
-
values
public static CommandLine.TraceLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommandLine.TraceLevel c : CommandLine.TraceLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandLine.TraceLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isEnabled
public boolean isEnabled(CommandLine.TraceLevel other)
-
print
private void print(CommandLine.Tracer tracer, java.lang.String msg, java.lang.Object... params)
-
prefix
private java.lang.String prefix(java.lang.String msg)
-
lookup
static CommandLine.TraceLevel lookup(java.lang.String key)
-
-