Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2013-08-12 03:21:24 -0400
committerIgor Fedorenko2013-08-12 03:42:21 -0400
commit909cb889363513822c86fc8c4a3aa88603dd2378 (patch)
tree7b5ba336357396e67cf0ff28de7cc93c1cb68b4a /org.eclipse.m2e.logback.appender/src
parenta5acb0a34038a2b56144b28c0edc5af465905f0f (diff)
downloadm2e-core-909cb889363513822c86fc8c4a3aa88603dd2378.tar.gz
m2e-core-909cb889363513822c86fc8c4a3aa88603dd2378.tar.xz
m2e-core-909cb889363513822c86fc8c4a3aa88603dd2378.zip
414843 do not honour -consolelogmilestones/1.5/1.5.0.20130812-0834
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.logback.appender/src')
-rw-r--r--org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java39
1 files changed, 0 insertions, 39 deletions
diff --git a/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java b/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java
deleted file mode 100644
index c7011093..00000000
--- a/org.eclipse.m2e.logback.appender/src/main/java/org/eclipse/m2e/logback/appender/ConsoleAppenderFilter.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Sonatype, Inc. - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.m2e.logback.appender;
-
-import ch.qos.logback.classic.spi.ILoggingEvent;
-import ch.qos.logback.core.filter.Filter;
-import ch.qos.logback.core.spi.FilterReply;
-
-import org.eclipse.core.runtime.adaptor.EclipseStarter;
-import org.eclipse.osgi.framework.internal.core.FrameworkProperties;
-
-
-/**
- * Filters out (disables) logging to console if -consoleLog was passed as arg to eclipse
- */
-@SuppressWarnings("restriction")
-public class ConsoleAppenderFilter extends Filter<ILoggingEvent> {
- private boolean consoleLogEnabled;
-
- public ConsoleAppenderFilter() {
- consoleLogEnabled = "true".equals(FrameworkProperties.getProperty(EclipseStarter.PROP_CONSOLE_LOG));
- }
-
- public FilterReply decide(ILoggingEvent loggingEvent) {
- if(consoleLogEnabled) {
- return FilterReply.NEUTRAL;
- }
- return FilterReply.DENY;
- }
-}

Back to the top