mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Code review adjustments
This commit is contained in:
@@ -160,6 +160,7 @@ public class NBCLI implements Function<String[], Integer> {
|
||||
.setMaxLogs(globalOptions.getLogsMax())
|
||||
.setLogsDirectory(globalOptions.getLogsDirectory())
|
||||
.setAnsiEnabled(globalOptions.isEnableAnsi())
|
||||
.setDedicatedVerificationLogger(globalOptions.isDedicatedVerificationLogger())
|
||||
.activate();
|
||||
ConfigurationFactory.setConfigurationFactory(loggerConfig);
|
||||
|
||||
@@ -246,7 +247,7 @@ public class NBCLI implements Function<String[], Integer> {
|
||||
}
|
||||
|
||||
NBCLIOptions options = new NBCLIOptions(args);
|
||||
logger = LogManager.getLogger("NBCLI"); // TODO JK - already present in L166
|
||||
logger = LogManager.getLogger("NBCLI");
|
||||
|
||||
NBIO.addGlobalIncludes(options.wantsIncludes());
|
||||
|
||||
|
||||
@@ -124,6 +124,7 @@ public class NBCLIOptions {
|
||||
|
||||
private static final String DEFAULT_CONSOLE_PATTERN = "TERSE";
|
||||
private static final String DEFAULT_LOGFILE_PATTERN = "VERBOSE";
|
||||
private final static String ENABLE_DEDICATED_VERIFICATION_LOGGER = "--enable-dedicated-verification-logging";
|
||||
|
||||
// private static final String DEFAULT_CONSOLE_LOGGING_PATTERN = "%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n";
|
||||
|
||||
@@ -186,6 +187,7 @@ public class NBCLIOptions {
|
||||
private String graphitelogLevel="info";
|
||||
private boolean wantsListCommands = false;
|
||||
private boolean wantsListApps = false;
|
||||
private boolean dedicatedVerificationLogger = false;
|
||||
|
||||
public boolean isWantsListApps() {
|
||||
return wantsListApps;
|
||||
@@ -227,6 +229,14 @@ public class NBCLIOptions {
|
||||
return this.graphitelogLevel;
|
||||
}
|
||||
|
||||
public boolean isDedicatedVerificationLogger() {
|
||||
return this.dedicatedVerificationLogger;
|
||||
}
|
||||
|
||||
public void enableDedicatedVerificationLogger() {
|
||||
this.dedicatedVerificationLogger = true;
|
||||
}
|
||||
|
||||
public enum Mode {
|
||||
ParseGlobalsOnly,
|
||||
ParseAllOptions
|
||||
@@ -340,6 +350,10 @@ public class NBCLIOptions {
|
||||
setWantsStackTraces(true);
|
||||
arglist.removeFirst();
|
||||
break;
|
||||
case ENABLE_DEDICATED_VERIFICATION_LOGGER:
|
||||
enableDedicatedVerificationLogger();
|
||||
arglist.removeFirst();
|
||||
break;
|
||||
case ANNOTATE_EVENTS:
|
||||
arglist.removeFirst();
|
||||
String toAnnotate = readWordOrThrow(arglist, "annotated events");
|
||||
|
||||
Reference in New Issue
Block a user