See CXF Message Logging docs at
http://cxf.apache.org/docs/message-logging.html
and
https://github.com/apache/cxf/blob/master/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java

You can simply instantiate the LoggingFeature class and set properties on
it:
logging = new LoggingFeature();
logging.setPrettyLogging(true);

Then you add it as a feature on the bus, endpoin or client:

https://github.com/cschneider/talk-logging/blob/master/sample-rest/src/main/java/net/lr/talk/logging/rest/ServiceStarter.java

Christian

2018-02-05 12:12 GMT+01:00 Al Grant <[email protected]>:

> How do I enable pretty output of the XML to the console? All the examples
> on
> StackOverflow seem to use a XML configuration file, but everything I am
> doing is in code.
>
>
>
> --
> Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Reply via email to