public class LoggingCommandLineConverter extends AbstractCommandLineConverter<LoggingConfiguration>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEBUG |
static java.lang.String |
DEBUG_LONG |
static java.lang.String |
FULL_STACKTRACE |
static java.lang.String |
FULL_STACKTRACE_LONG |
static java.lang.String |
INFO |
static java.lang.String |
INFO_LONG |
static java.lang.String |
NO_COLOR |
static java.lang.String |
QUIET |
static java.lang.String |
QUIET_LONG |
static java.lang.String |
STACKTRACE |
static java.lang.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(java.lang.String commandLineArgument)
This returns the log level object represented by the command line argument
|
java.lang.String |
getLogLevelCommandLine(LogLevel logLevel)
This returns the command line argument that represents the specified log level.
|
java.util.Set<java.lang.String> |
getLogLevelOptions() |
java.util.Collection<LogLevel> |
getLogLevels()
This returns the log levels that are supported on the command line.
|
ShowStacktrace |
getShowStacktrace(java.lang.String commandLineArgument)
This returns the stack trace level object represented by the command line argument
|
java.lang.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 java.lang.String DEBUG
public static final java.lang.String DEBUG_LONG
public static final java.lang.String INFO
public static final java.lang.String INFO_LONG
public static final java.lang.String QUIET
public static final java.lang.String QUIET_LONG
public static final java.lang.String NO_COLOR
public static final java.lang.String FULL_STACKTRACE
public static final java.lang.String FULL_STACKTRACE_LONG
public static final java.lang.String STACKTRACE
public static final java.lang.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(java.lang.String commandLineArgument)
commandLineArgument - a single command line argument (with no '-')public java.lang.String getLogLevelCommandLine(LogLevel logLevel)
logLevel - the log level.public java.util.Collection<LogLevel> getLogLevels()
public java.util.Set<java.lang.String> getLogLevelOptions()
public ShowStacktrace getShowStacktrace(java.lang.String commandLineArgument)
commandLineArgument - a single command line argument (with no '-')public java.lang.String getShowStacktraceCommandLine(ShowStacktrace showStacktrace)
showStacktrace - the stack trace level.Copyright © 2013. All rights reserved