Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 98AD0200C29 for ; Tue, 28 Feb 2017 13:19:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 971E6160B7E; Tue, 28 Feb 2017 12:19:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BA139160B6A for ; Tue, 28 Feb 2017 13:19:49 +0100 (CET) Received: (qmail 60674 invoked by uid 500); 28 Feb 2017 12:19:48 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 60662 invoked by uid 99); 28 Feb 2017 12:19:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2017 12:19:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 65E1FC0016 for ; Tue, 28 Feb 2017 12:19:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id S1psGl_Kse0R for ; Tue, 28 Feb 2017 12:19:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 491225FBC1 for ; Tue, 28 Feb 2017 12:19:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1758EE0629 for ; Tue, 28 Feb 2017 12:19:46 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5173824160 for ; Tue, 28 Feb 2017 12:19:45 +0000 (UTC) Date: Tue, 28 Feb 2017 12:19:45 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CXF-7254) New LoggingFeature Sl4jEventSender does not log the request headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Feb 2017 12:19:50 -0000 [ https://issues.apache.org/jira/browse/CXF-7254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887889#comment-15887889 ] Sergey Beryozkin edited comment on CXF-7254 at 2/28/17 12:19 PM: ----------------------------------------------------------------- Hi Dan, Christian I reverted my recent update to the event formatter which was starting the output from the next line as it indeed looked a bit strange, even though well aligned but I also removed a "Type:" prefix to make it arguably a bit more optimal. Slf4jEventSender: {noformat} Feb 28, 2017 11:40:41 AM org.apache.cxf.ext.logging.slf4j.Slf4jEventSender send INFO: RESP_OUT Content-Type: application/x-www-form-urlencoded ResponseCode: 200 ExchangeId: 2b7d6436-8608-4309-9cf8-9d872ec445e5 MessageId: 555ff248-64f7-4442-99fc-22e0ce4a208f Headers: {BookId=123, MAP-NAME=javax.ws.rs.core.MultivaluedMap, Date=Tue, 28 Feb 2017 11:40:41 GMT, Content-Type=application/x-www-form-urlencoded} Payload: a=aValue&b=b+value&c%25=cValue {noformat} and PrintWriterEventSender: {noformat} 2017-02-28T11:40:41.321Z - PrintWriterEventSender - REQ_IN Address: http://localhost:9001/bookstore/form HttpMethod: POST Content-Type: application/x-www-form-urlencoded ExchangeId: 2b7d6436-8608-4309-9cf8-9d872ec445e5 MessageId: 76f84634-c18c-4f68-8bd5-4c56381f46ac Headers: {Accept=*/*, Cache-Control=no-cache, User-Agent=Apache-CXF/${project.version}, connection=keep-alive, content-type=application/x-www-form-urlencoded, Host=localhost:9001, Pragma=no-cache, Content-Length=30} Payload: a=aValue&b=b+value&c%25=cValue {noformat} It feels quite optimal to me now as REQ_IN/REQ_OUT is self descriptive and fits well on the same line with INFO/etc, but feel free to add a "Type:" back if you like. I'd also like to get rid of 'MessageId' from the (verbose) output, but we can still keep it as MDC property. MessageId is redundant - it is local to a given in/out part of the exchange and thus can't be used to correlate, it just adds to the space. Besides ExhangeID plus REQ_IN or ExhangeID + plus REC_OUT pairs can be used to correlate on the given in or out flow if really needed. Thanks, Sergey was (Author: sergey_beryozkin): Hi Dan, Christian I reverted my recent update to the event formatter which was starting the output from the next line as it indeed looked a bit strange, even though well aligned but I also removed a "Type:" prefix to make it arguably a bit more optimal. Slf4jEventSender: {noformat} Feb 28, 2017 11:40:41 AM org.apache.cxf.ext.logging.slf4j.Slf4jEventSender send INFO: RESP_OUT Content-Type: application/x-www-form-urlencoded ResponseCode: 200 ExchangeId: 2b7d6436-8608-4309-9cf8-9d872ec445e5 MessageId: 555ff248-64f7-4442-99fc-22e0ce4a208f Headers: {BookId=123, MAP-NAME=javax.ws.rs.core.MultivaluedMap, Date=Tue, 28 Feb 2017 11:40:41 GMT, Content-Type=application/x-www-form-urlencoded} Payload: a=aValue&b=b+value&c%25=cValue {noformat} and PrintWriterEventSender: {noformat} 2017-02-28T11:40:41.321Z - PrintWriterEventSender - REQ_IN Address: http://localhost:9001/bookstore/form HttpMethod: POST Content-Type: application/x-www-form-urlencoded ExchangeId: 2b7d6436-8608-4309-9cf8-9d872ec445e5 MessageId: 76f84634-c18c-4f68-8bd5-4c56381f46ac Headers: {Accept=*/*, Cache-Control=no-cache, User-Agent=Apache-CXF/${project.version}, connection=keep-alive, content-type=application/x-www-form-urlencoded, Host=localhost:9001, Pragma=no-cache, Content-Length=30} Payload: a=aValue&b=b+value&c%25=cValue {noformat} It feels quite optimal to me now as REQ_IN/REQ_OUT is self descriptive and fits well on the same line with INFO/etc, but feel free to add a "Type:" back if you like. I'd also like to get rid of 'MessageId' from the (verbose) output, but we can still keep it as MDC property. MessageId is redundant - it is local to a given in/out part of the exchange and thus can't be used to correlate, it just adds to the space. Besides ExhangeID plus REQ_IN or ExhangeID + plus REC_OUT pairs can be used to correlate om the given in or out flow if really needed. Thanks, Sergey > New LoggingFeature Sl4jEventSender does not log the request headers > ------------------------------------------------------------------- > > Key: CXF-7254 > URL: https://issues.apache.org/jira/browse/CXF-7254 > Project: CXF > Issue Type: Bug > Components: logging > Reporter: Sergey Beryozkin > Assignee: Christian Schneider > Fix For: 3.2.0, 3.1.11 > > > No request/response properties are reported which, in case of the requests with the empty payloads, leads to no info reported at all, while for the requests with the payloads only the payload INFO is displayed -- This message was sent by Atlassian JIRA (v6.3.15#6346)