[
https://issues.apache.org/jira/browse/CXF-7254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882600#comment-15882600
]
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:
{noformat}
Feb 24, 2017 12:34:24 PM org.apache.cxf.ext.logging.slf4j.Slf4jNoMdcEventSender
send
INFO:
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}
{noformat}
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,
https://builds.apache.org/job/CXF-Trunk-JDK18/org.apache.cxf$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: 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)