Re: Pretty Logging

2018-02-07 Thread Al Grant
This is what worked for me for the benefit of anyone else: // LOGGING LoggingOutInterceptor loi = new LoggingOutInterceptor(); loi.setPrettyLogging(true); LoggingInInterceptor lii = new LoggingInInterceptor(); lii.setPrettyLogging(true);

Re: Pretty Logging

2018-02-07 Thread Al Grant
I do actually get the message on the console, but its all run together, no new lines or indentation. Is that what the pretty part would do if i had it going? -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: Pretty Logging

2018-02-06 Thread Al Grant
Hi, This is the client created here : org.apache.cxf.endpoint.Client client = org.apache.cxf.frontend.ClientProxy.getClient(irsiService); org.apache.cxf.endpoint.Endpoint cxfEndpoint = client.getEndpoint(); -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: Pretty Logging

2018-02-06 Thread Christian Schneider
It is a bit more than the two lines as you also have to add the feature to your client. What API do you use to create the client? The LoggingFeature by default logs to slf4j. So the easiest way to get output on the console is to use a logging backend like log4j and configure it to log to the

Re: Pretty Logging

2018-02-05 Thread Al Grant
Thanks. Do you actually mean to instantiate it: LoggingFeature logging = new LoggingFeature(); logging.setPrettyLogging(true); The github example is a Server - I want to do it in a client and print to log4j and console? So after the above two lines how do I write to console

Re: Pretty Logging

2018-02-05 Thread Christian Schneider
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 =

Pretty Logging

2018-02-05 Thread Al Grant
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