public class LoggingCommandLineConverter extends AbstractCommandLineConverter<LoggingConfiguration>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG |
static String |
DEBUG_LONG |
static String |
FULL_STACKTRACE |
static String |
FULL_STACKTRACE_LONG |
static String |
INFO |
static String |
INFO_LONG |
static String |
NO_COLOR |
static String |
QUIET |
static String |
QUIET_LONG |
static String |
STACKTRACE |
static String |
STACKTRACE_LONG |
| Constructor and Description |
|---|
LoggingCommandLineConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(CommandLineParser parser) |
LoggingConfiguration |
convert(ParsedCommandLine commandLine,
LoggingConfiguration loggingConfiguration) |
LogLevel |
getLogLevel(String commandLineArgument)
This returns the log level object represented by the command line argument
|
String |
getLogLevelCommandLine(LogLevel logLevel)
This returns the command line argument that represents the specified log level.
|
Set<String> |
getLogLevelOptions() |
Collection<LogLevel> |
getLogLevels()
This returns the log levels that are supported on the command line.
|
ShowStacktrace |
getShowStacktrace(String commandLineArgument)
This returns the stack trace level object represented by the command line argument
|
String |
getShowStacktraceCommandLine(ShowStacktrace showStacktrace)
This returns the command line argument that represents the specified stack trace level.
|
protected LoggingConfiguration |
newInstance() |
convert, convert, convertpublic static final String DEBUG
public static final String DEBUG_LONG
public static final String INFO
public static final String INFO_LONG
public static final String QUIET
public static final String QUIET_LONG
public static final String NO_COLOR
public static final String FULL_STACKTRACE
public static final String FULL_STACKTRACE_LONG
public static final String STACKTRACE
public static final String STACKTRACE_LONG
protected LoggingConfiguration newInstance()
newInstance in class AbstractCommandLineConverter<LoggingConfiguration>public LoggingConfiguration convert(ParsedCommandLine commandLine, LoggingConfiguration loggingConfiguration) throws CommandLineArgumentException
CommandLineArgumentExceptionpublic void configure(CommandLineParser parser)
public LogLevel getLogLevel(String commandLineArgument)
commandLineArgument - a single command line argument (with no '-')public String getLogLevelCommandLine(LogLevel logLevel)
logLevel - the log level.public Collection<LogLevel> getLogLevels()
public Set<String> getLogLevelOptions()
public ShowStacktrace getShowStacktrace(String commandLineArgument)
commandLineArgument - a single command line argument (with no '-')public String getShowStacktraceCommandLine(ShowStacktrace showStacktrace)
showStacktrace - the stack trace level.Copyright © 2013. All rights reserved