Add documentation, remove unused LogEventMapper interface Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b1227d6a Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b1227d6a Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b1227d6a
Branch: refs/heads/3.1.x-fixes Commit: b1227d6ae33cc3e33a6685933f4c7ec51da3bd95 Parents: 61c7800 Author: Christian Schneider <ch...@die-schneider.net> Authored: Tue Mar 21 15:25:16 2017 +0100 Committer: Daniel Kulp <dk...@apache.org> Committed: Wed Mar 22 15:20:56 2017 -0400 ---------------------------------------------------------------------- .../logging/event/DefaultLogEventMapper.java | 2 +- .../cxf/ext/logging/event/LogEventMapper.java | 25 -------------------- .../ext/logging/event/LogMessageFormatter.java | 2 +- .../ext/logging/event/PrettyLoggingFilter.java | 4 ++++ 4 files changed, 6 insertions(+), 27 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/b1227d6a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java ---------------------------------------------------------------------- diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java index 78bbc7b..0934c2c 100644 --- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java +++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java @@ -45,7 +45,7 @@ import org.apache.cxf.service.model.ServiceInfo; import org.apache.cxf.ws.addressing.AddressingProperties; import org.apache.cxf.ws.addressing.ContextUtils; -public class DefaultLogEventMapper implements LogEventMapper { +public class DefaultLogEventMapper { private static final Set<String> BINARY_CONTENT_MEDIA_TYPES; static { BINARY_CONTENT_MEDIA_TYPES = new HashSet<String>(); http://git-wip-us.apache.org/repos/asf/cxf/blob/b1227d6a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogEventMapper.java ---------------------------------------------------------------------- diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogEventMapper.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogEventMapper.java deleted file mode 100644 index c187e3c..0000000 --- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogEventMapper.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.cxf.ext.logging.event; - -import org.apache.cxf.message.Message; - -public interface LogEventMapper { - LogEvent map(Message message); -} http://git-wip-us.apache.org/repos/asf/cxf/blob/b1227d6a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java ---------------------------------------------------------------------- diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java index 0c628f7..fe872d2 100644 --- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java +++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java @@ -24,7 +24,7 @@ import javax.xml.namespace.QName; import org.apache.cxf.common.util.StringUtils; /** - * + * Formats a log message showing the most important meta data */ public final class LogMessageFormatter { http://git-wip-us.apache.org/repos/asf/cxf/blob/b1227d6a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java ---------------------------------------------------------------------- diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java index a3bc909..ccadc2f 100644 --- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java +++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrettyLoggingFilter.java @@ -30,6 +30,10 @@ import org.apache.cxf.staxutils.StaxUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +/** + * Formats the log message with indents. + * If the log message was truncated then this filter might additionally cut incomplete tags + */ public class PrettyLoggingFilter implements LogEventSender { private static final Logger LOG = LoggerFactory.getLogger(PrettyLoggingFilter.class); private LogEventSender next;