cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-7254) New LoggingFeature Sl4jEventSender does not log the request headers
Date Fri, 24 Feb 2017 12:45:44 GMT


Sergey Beryozkin commented on CXF-7254:

Hi Christian, I added Slf4jNoMdcEventSender which logs all info in one go which is an option
we agreed yesterday too, rearranged a bit the order of the properties, capitalized them, so
for a GET request I see something like this now:
Feb 24, 2017 12:34:24 PM org.apache.cxf.ext.logging.slf4j.Slf4jNoMdcEventSender send
    Type: REQ_IN
    Address: http://localhost:9001/bookstore/books/query/default
    HttpMethod: GET
    ExchangeId: ec2537bd-2638-4f1c-bdaa-cf9dc76c1330
    MessageId: dd71dcd8-5233-4cd3-8b1c-5343a55da941
    Headers: {Accept=*/*, Cache-Control=no-cache, User-Agent=Apache-CXF/${project.version},
connection=keep-alive, Host=localhost:9001, Pragma=no-cache, Content-Type=null}

which is very close to the OOB experience offered by the old feature. 
Can you please doc how to capture MDC output with the formatter and it would be cool...

By the way I'm also seeing the following test failing in Jenkins but not locally,$cxf-rt-rs-client/2358/testReport/junit/org.apache.cxf.jaxrs.client.logging/RESTLoggingTest/testBinary/

Have a look please

Thanks, Sergey

> New LoggingFeature Sl4jEventSender does not log the request headers
> -------------------------------------------------------------------
>                 Key: CXF-7254
>                 URL:
>             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

View raw message