Skip to content

Commit

Permalink
0000762: Change command line options --noconsole to --no-log-console …
Browse files Browse the repository at this point in the history
…and --nologfile to --no-log-file
  • Loading branch information
chenson42 committed Aug 9, 2012
1 parent 8258fc9 commit f652a32
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -70,9 +70,9 @@ public abstract class AbstractCommandLauncher {

protected static final String OPTION_DEBUG = "debug";

protected static final String OPTION_NOCONSOLE = "noconsole";
protected static final String OPTION_NO_LOG_CONSOLE = "no-log-console";

protected static final String OPTION_NOLOGFILE = "nologfile";
protected static final String OPTION_NO_LOG_FILE = "no-log-file";

protected static final String OPTION_KEYSTORE_PASSWORD = "storepass";

Expand Down Expand Up @@ -182,11 +182,11 @@ protected void configureLogging(CommandLine line) throws MalformedURLException {
}
}

if (line.hasOption(OPTION_NOCONSOLE)) {
if (line.hasOption(OPTION_NO_LOG_CONSOLE)) {
org.apache.log4j.Logger.getRootLogger().removeAppender("CONSOLE");
}

if (line.hasOption(OPTION_NOLOGFILE)) {
if (line.hasOption(OPTION_NO_LOG_FILE)) {
org.apache.log4j.Logger.getRootLogger().removeAppender("ROLLING");
} else {
Appender appender = org.apache.log4j.Logger.getRootLogger().getAppender("ROLLING");
Expand Down Expand Up @@ -346,8 +346,8 @@ protected void buildOptions(Options options) {
addCommonOption(options, "e", OPTION_ENGINE, true);
addCommonOption(options, "v", OPTION_VERBOSE_CONSOLE, false);
addCommonOption(options, null, OPTION_DEBUG, false);
addCommonOption(options, null, OPTION_NOCONSOLE, false);
addCommonOption(options, null, OPTION_NOLOGFILE, false);
addCommonOption(options, null, OPTION_NO_LOG_CONSOLE, false);
addCommonOption(options, null, OPTION_NO_LOG_FILE, false);
}

protected void buildCryptoOptions(Options options) {
Expand Down

0 comments on commit f652a32

Please sign in to comment.