Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e')
-rw-r--r--org.eclipse.m2e.logback.configuration/src/org/eclipse/m2e/logback/configuration/LogPlugin.java19
1 files changed, 2 insertions, 17 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 afc6b6da..d6f05b00 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
@@ -34,11 +34,8 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.adaptor.EclipseStarter;
-import org.eclipse.osgi.framework.internal.core.FrameworkProperties;
-@SuppressWarnings("restriction")
public class LogPlugin extends Plugin {
private static final String PLUGIN_ID = "org.eclipse.m2e.logback.configuration"; //$NON-NLS-1$
@@ -100,9 +97,7 @@ public class LogPlugin extends Plugin {
}
private static void systemOut(String message) {
- if("true".equals(FrameworkProperties.getProperty(EclipseStarter.PROP_CONSOLE_LOG))) {
- System.out.println(PLUGIN_ID + ": " + message); //$NON-NLS-1$
- }
+ System.out.println(PLUGIN_ID + ": " + message); //$NON-NLS-1$
}
private static void systemErr(String message) {
@@ -189,17 +184,7 @@ public class LogPlugin extends Plugin {
configurator.setContext(lc);
configurator.doConfigure(configFile);
- systemOut(EclipseStarter.PROP_CONSOLE_LOG + "=" + FrameworkProperties.getProperty(EclipseStarter.PROP_CONSOLE_LOG));
- boolean consoleLog = "true".equals(FrameworkProperties.getProperty(EclipseStarter.PROP_CONSOLE_LOG));
- if(consoleLog) {
- StatusPrinter.printInCaseOfErrorsOrWarnings(lc);
-// } else {
-// Logger logger = (Logger) LoggerFactory.getLogger("root");
-// Appender consoleAppender = logger.getAppender("STDOUT");
-// if(consoleAppender != null && consoleAppender.isStarted()) {
-// consoleAppender.stop();
-// }
- }
+ StatusPrinter.printInCaseOfErrorsOrWarnings(lc);
LogHelper.logJavaProperties(LoggerFactory.getLogger(LogPlugin.class));
}

Back to the top