summaryrefslogtreecommitdiffstats
path: root/ccsdk-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'ccsdk-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java')
-rw-r--r--ccsdk-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java43
1 files changed, 21 insertions, 22 deletions
diff --git a/ccsdk-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java b/ccsdk-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
index 165a8b8..13c36e6 100644
--- a/ccsdk-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
+++ b/ccsdk-app-common/src/main/java/org/onap/fusionapp/util/CustomLoggingFilter.java
@@ -33,26 +33,25 @@ import ch.qos.logback.core.spi.FilterReply;
*/
public class CustomLoggingFilter extends Filter<ILoggingEvent> {
- /**
- * Custom Filter is added to strip out the continuous U-EB logging messages
- * But make sure we log the ERROR and WARNING Level messages.
- *
- * @param event
- * Logging event
- */
- @Override
- public FilterReply decide(ILoggingEvent event) {
- try {
- if ((event.getLevel() != Level.ERROR || event.getLevel() != Level.WARN)
- && ("UEBConsumerThread".equalsIgnoreCase(event.getThreadName()))
- && (event.getLoggerName().contains("com.att.nsa")
- || event.getLoggerName().contains("org.apache.http"))) {
- return FilterReply.DENY;
- } else {
- return FilterReply.NEUTRAL;
- }
- } catch (Exception e) {
- return FilterReply.NEUTRAL;
- }
- }
+ /**
+ * Custom Filter is added to strip out the continuous U-EB logging messages But
+ * make sure we log the ERROR and WARNING Level messages.
+ *
+ * @param event Logging event
+ */
+ @Override
+ public FilterReply decide(ILoggingEvent event) {
+ try {
+ if ((event.getLevel() != Level.ERROR || event.getLevel() != Level.WARN)
+ && ("UEBConsumerThread".equalsIgnoreCase(event.getThreadName()))
+ && (event.getLoggerName().contains("com.att.nsa")
+ || event.getLoggerName().contains("org.apache.http"))) {
+ return FilterReply.DENY;
+ } else {
+ return FilterReply.NEUTRAL;
+ }
+ } catch (Exception e) {
+ return FilterReply.NEUTRAL;
+ }
+ }
}