[Swift-commit] r3640 - trunk/src/org/griphyn/vdl/karajan
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Wed Sep 22 17:33:52 CDT 2010
Author: wozniak
Date: 2010-09-22 17:33:52 -0500 (Wed, 22 Sep 2010)
New Revision: 3640
Modified:
trunk/src/org/griphyn/vdl/karajan/Loader.java
Log:
New swift -minimal.logging option
Modified: trunk/src/org/griphyn/vdl/karajan/Loader.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/Loader.java 2010-09-22 17:37:18 UTC (rev 3639)
+++ trunk/src/org/griphyn/vdl/karajan/Loader.java 2010-09-22 22:33:52 UTC (rev 3640)
@@ -70,6 +70,7 @@
public static final String ARG_TUI = "tui";
public static final String ARG_RECOMPILE = "recompile";
public static final String ARG_REDUCED_LOGGING = "reduced.logging";
+ public static final String ARG_MINIMAL_LOGGING = "minimal.logging";
public static final String CONST_VDL_OPERATION = "vdl:operation";
public static final String VDL_OPERATION_RUN = "run";
@@ -427,6 +428,8 @@
ap.addFlag(ARG_TUI);
ap.addFlag(ARG_REDUCED_LOGGING, "Makes logging more terse by disabling provenance " +
"information and low-level task messages");
+ ap.addFlag(ARG_MINIMAL_LOGGING, "Makes logging much more terse: " +
+ "reports warnings only");
Map desc = VDL2ConfigProperties.getPropertyDescriptions();
Iterator i = desc.entrySet().iterator();
@@ -488,6 +491,9 @@
Level.INFO);
ca.setThreshold(Level.FATAL);
}
+ else if (ap.isPresent(ARG_MINIMAL_LOGGING)) {
+ fa.setThreshold(Level.WARN);
+ }
else if (ap.isPresent(ARG_REDUCED_LOGGING)) {
Logger.getLogger(AbstractDataNode.class).setLevel(Level.WARN);
Logger.getLogger(New.class).setLevel(Level.WARN);
More information about the Swift-commit
mailing list