Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-06-05 18:13:29 -0400
committerIgor Fedorenko2011-06-05 18:13:29 -0400
commitc5654fe953510b7dc43319f59a7e969f3ee6b4ce (patch)
tree1b300fe5c5e8ddf6be0f739bff66f92f8a9af2e5 /org.eclipse.m2e.logback.configuration
parentdc4570969bab3916aed9db1cdde4089e3031cfce (diff)
downloadm2e-core-c5654fe953510b7dc43319f59a7e969f3ee6b4ce.tar.gz
m2e-core-c5654fe953510b7dc43319f59a7e969f3ee6b4ce.tar.xz
m2e-core-c5654fe953510b7dc43319f59a7e969f3ee6b4ce.zip
340312 silence all STDOUT logging unless -consolelog
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.logback.configuration')
-rw-r--r--org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java b/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java
index 22cda69c..5ca34831 100644
--- a/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java
+++ b/org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java
@@ -100,7 +100,9 @@ public class LogPlugin extends Plugin {
}
private static void systemOut(String message) {
- System.out.println(PLUGIN_ID + ": " + message); //$NON-NLS-1$
+ if("true".equals(FrameworkProperties.getProperty(EclipseStarter.PROP_CONSOLE_LOG))) {
+ System.out.println(PLUGIN_ID + ": " + message); //$NON-NLS-1$
+ }
}
private static void systemErr(String message) {

Back to the top