You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "G.Dab" <in...@cvwebdesigns.com> on 2019/03/07 17:30:35 UTC

LoggingFeature and console output

I've enabled the LoggingFeature in my cxf.xml by adding the following to my
jaxws:client

      <jaxws:features>
         <bean class="org.apache.cxf.ext.logging.LoggingFeature"/>
      </jaxws:features>

I just can't figure out what else I need to add to my webservice client
class in order to view the output in the console when attempting to connect
to a remote webservice.  Can anyone give me a link to additional
instructions?  Thanks :)



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: LoggingFeature and console output

Posted by "G.Dab" <in...@cvwebdesigns.com>.
Trying out logback-classic.jar now :)



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: LoggingFeature and console output

Posted by "G.Dab" <in...@cvwebdesigns.com>.
Hey  vEnkaTa mohAna rAo SriperumbUdUru, thanks for the response!

It looks like I'm not understanding how all this works.  I'd though that
just enabling the LoggingFeature and specifying the logging.properties file
would show me the SOAP message I'm trying to send.  Do I still need to add
interceptors in my client code?



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: LoggingFeature and console output

Posted by vEnkaTa mohAna rAo SriperumbUdUru <mo...@gmail.com>.
I'm not sure which logging framework you are using iI would like to suggest
the following simple steps
please add logback-classic.jar to your classpath, logback tries to load
logback.xml if it doesn't found in the classpath it logs using console
appender this is the default logback behavior.

Happy logging :)

On Fri, Mar 8, 2019 at 9:41 PM G.Dab <in...@cvwebdesigns.com> wrote:

> Made some progress on this.  I pulled the logging.properties file out of my
> .jar and placed it in the same folder as the jar. To run the client from
> command line, from within the folder I ran:
>
> java -Djava.util.logging.config.file=logging.properties -jar
> /NameOfJar.jar/
>
>
>
>
>
> --
> Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
>

Re: LoggingFeature and console output

Posted by "G.Dab" <in...@cvwebdesigns.com>.
Made some progress on this.  I pulled the logging.properties file out of my
.jar and placed it in the same folder as the jar. To run the client from
command line, from within the folder I ran:

java -Djava.util.logging.config.file=logging.properties -jar /NameOfJar.jar/ 





--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: LoggingFeature and console output

Posted by "G.Dab" <in...@cvwebdesigns.com>.
When running my .jar file I've specified the location of the
logging.properties file in the root of the .jar by using
-Djava.util.logging.config.file=logging.properties but still nothing shows
in the console.



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html