<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Configuring CXF Logging To Go Through Log4J</title>
	<atom:link href="http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/</link>
	<description>About Technology in My Life</description>
	<lastBuildDate>Tue, 24 Jan 2012 17:27:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: protogeek</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-62864</link>
		<dc:creator>protogeek</dc:creator>
		<pubDate>Fri, 06 Jan 2012 13:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-62864</guid>
		<description>Thanks so much for this! We&#039;re using SLF4J, which CXF now supports. Adding a META-INF file as you suggested with the following worked like a charm for me:

org.apache.cxf.common.logging.Slf4jLogger</description>
		<content:encoded><![CDATA[<p>Thanks so much for this! We&#8217;re using SLF4J, which CXF now supports. Adding a META-INF file as you suggested with the following worked like a charm for me:</p>
<p>org.apache.cxf.common.logging.Slf4jLogger</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-57709</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Wed, 12 Oct 2011 19:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-57709</guid>
		<description>Don&#039;t know if you can get anything from CXF. Probably the easiest way for you to do this would be to create a servlet filter, and mount it in front of the CXF servlet. You could then log before chaining and after return from chain.

If you want the complete request timed, you should simply use your access_log of the server you are using, which most certainly can log millis/seconds pr. request.

Another way, that I&#039;ve been using, it a combination of a servlet filter and the perf4j library. In the servlet filter, I extracted the SOAP method name from the request and then logged through perf4j with SOAP method name as tag. That, in combination with perf4j&#039;s grouped timing statistics gives a great, realtime picture of ws request traffic on each ws method.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t know if you can get anything from CXF. Probably the easiest way for you to do this would be to create a servlet filter, and mount it in front of the CXF servlet. You could then log before chaining and after return from chain.</p>
<p>If you want the complete request timed, you should simply use your access_log of the server you are using, which most certainly can log millis/seconds pr. request.</p>
<p>Another way, that I&#8217;ve been using, it a combination of a servlet filter and the perf4j library. In the servlet filter, I extracted the SOAP method name from the request and then logged through perf4j with SOAP method name as tag. That, in combination with perf4j&#8217;s grouped timing statistics gives a great, realtime picture of ws request traffic on each ws method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aravind</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-57701</link>
		<dc:creator>Aravind</dc:creator>
		<pubDate>Wed, 12 Oct 2011 11:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-57701</guid>
		<description>Polesen, I have another question -- when I log cxf using the In and Out interceptors, it seems to log it OK, but I am interested in getting the round trip time.. from the point CXF receives a SOAP request to the point where CXF returns the SOAP response. Is it possible to map this info and integrate it with our webservices logs??

07:25:03,845 -  INFO  Inbound Message
----------------------------
ID: 1
Address: 
Encoding: 
Content-Type: 
Headers: 
Payload: &lt;soap:Envelope...........
&lt;soap continued... 
&lt;soap continued... 
&lt;soap continued... 


07:25:04,920 -  DEBUG  Invoking HTTP method POST
07:25:04,920 -  DEBUG  URIMappingInterceptor can only handle HTTP GET, not HTTP POST

07:25:05,021 - DEBUG  Entering my app for acct: 1234
...
...
...
07:25:10,004 - DEBUG  Exiting my app for acct: 1234 - Elapsed time: 4986 ms.

07:25:10,010 -  DEBUG  Interceptors contributed by bus: [org.apache.cxf.interceptor.LoggingOutInterceptor@5522a7b5]
07:25:10,011 -  DEBUG  Interceptors contributed by service: []
07:25:10,011 -  DEBUG  Interceptors contributed by endpoint: [org.apache.cxf.interceptor.MessageSenderInterceptor@563087bd, org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@c1fb580, org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@75c4ecb7, org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@53911ec8, org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@5c7c0754, org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@52c54b3b]
07:25:10,011 -  DEBUG  Interceptors contributed by binding: [org.apache.cxf.interceptor.AttachmentOutInterceptor@16ce38f1, org.apache.cxf.interceptor.StaxOutInterceptor@3cfc61e9, org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@5d802746, org.apache.cxf.interceptor.WrappedOutInterceptor@892949f, org.apache.cxf.interceptor.BareOutInterceptor@4f5b571e, org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@75b49b45, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@243e0b62]
07:25:10,695 -  INFO  Outbound Message


As you can see above, actual time taken from A-Z (CXF entry to CXF exit) is: 
07:25:03,845 ---- to ---- 07:25:10,695

However, i was able to capture only the time between: 
07:25:05,021 ---- to ---- 07:25:10,004

This is misleading &#039;cus I am only able to capture times within my app and not able to extend it to CXF. 

Is there any way I can customize these interceptors to log the info the way I want?</description>
		<content:encoded><![CDATA[<p>Polesen, I have another question &#8212; when I log cxf using the In and Out interceptors, it seems to log it OK, but I am interested in getting the round trip time.. from the point CXF receives a SOAP request to the point where CXF returns the SOAP response. Is it possible to map this info and integrate it with our webservices logs??</p>
<p>07:25:03,845 &#8211;  INFO  Inbound Message<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
ID: 1<br />
Address:<br />
Encoding:<br />
Content-Type:<br />
Headers:<br />
Payload: &lt;soap:Envelope&#8230;&#8230;&#8230;..<br />
&lt;soap continued&#8230;<br />
&lt;soap continued&#8230;<br />
&lt;soap continued&#8230; </p>
<p>07:25:04,920 &#8211;  DEBUG  Invoking HTTP method POST<br />
07:25:04,920 &#8211;  DEBUG  URIMappingInterceptor can only handle HTTP GET, not HTTP POST</p>
<p>07:25:05,021 &#8211; DEBUG  Entering my app for acct: 1234<br />
&#8230;<br />
&#8230;<br />
&#8230;<br />
07:25:10,004 &#8211; DEBUG  Exiting my app for acct: 1234 &#8211; Elapsed time: 4986 ms.</p>
<p>07:25:10,010 &#8211;  DEBUG  Interceptors contributed by bus: [org.apache.cxf.interceptor.LoggingOutInterceptor@5522a7b5]<br />
07:25:10,011 &#8211;  DEBUG  Interceptors contributed by service: []<br />
07:25:10,011 &#8211;  DEBUG  Interceptors contributed by endpoint: [org.apache.cxf.interceptor.MessageSenderInterceptor@563087bd, org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@c1fb580, org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@75c4ecb7, org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@53911ec8, org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@5c7c0754, org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@52c54b3b]<br />
07:25:10,011 &#8211;  DEBUG  Interceptors contributed by binding: [org.apache.cxf.interceptor.AttachmentOutInterceptor@16ce38f1, org.apache.cxf.interceptor.StaxOutInterceptor@3cfc61e9, org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@5d802746, org.apache.cxf.interceptor.WrappedOutInterceptor@892949f, org.apache.cxf.interceptor.BareOutInterceptor@4f5b571e, org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@75b49b45, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@243e0b62]<br />
07:25:10,695 &#8211;  INFO  Outbound Message</p>
<p>As you can see above, actual time taken from A-Z (CXF entry to CXF exit) is:<br />
07:25:03,845 &#8212;- to &#8212;- 07:25:10,695</p>
<p>However, i was able to capture only the time between:<br />
07:25:05,021 &#8212;- to &#8212;- 07:25:10,004</p>
<p>This is misleading &#8216;cus I am only able to capture times within my app and not able to extend it to CXF. </p>
<p>Is there any way I can customize these interceptors to log the info the way I want?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-55708</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Mon, 19 Sep 2011 15:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-55708</guid>
		<description>@piotrek What..I don&#039;t get it :-), what is the misleading part? I can see from the post you are linking to, that when he actually did what the post says, it works :-)

Suggestions for clarifications are welcome though :-)</description>
		<content:encoded><![CDATA[<p>@piotrek What..I don&#8217;t get it <img src='http://www.techper.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> , what is the misleading part? I can see from the post you are linking to, that when he actually did what the post says, it works <img src='http://www.techper.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Suggestions for clarifications are welcome though <img src='http://www.techper.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piotrek</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-55682</link>
		<dc:creator>piotrek</dc:creator>
		<pubDate>Mon, 19 Sep 2011 09:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-55682</guid>
		<description>@polesen
this post is veeery misleading. other people write posts to explain it (see http://www.thecorneroffice.org/blog/plink/2008/05/080501-2354.html ). it would be great if you provide a bit more clarification</description>
		<content:encoded><![CDATA[<p>@polesen<br />
this post is veeery misleading. other people write posts to explain it (see <a href="http://www.thecorneroffice.org/blog/plink/2008/05/080501-2354.html" rel="nofollow">http://www.thecorneroffice.org/blog/plink/2008/05/080501-2354.html</a> ). it would be great if you provide a bit more clarification</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-53805</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Mon, 15 Aug 2011 19:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-53805</guid>
		<description>@Srinivas

Sorry for the late reply. For some reason I had not seen (or maybe forgotten about) your comment, so I first got around to moderating it now.

The file “org.apache.cxf.Logger” should ONLY contain the one line “org.apache.cxf.common.logging.Log4jLogger” to enable log4j logging. Actually configuring log4j log levels etc., you need to look to the log4j project to learn about.

Log4j both have a .properties config file format and a xml config file format you can use. I&#039;ve always used the xml config file. You can also configure it programmatically.

If you place a file &quot;log4j.xml&quot; in the root of your classpath, log4j will automatically find and load that one.

You can also place it outside classpath, and provide the system property &quot;-Dlog4j.configuration=file://....path to your file&quot;.

If for some some reason you have trouble making log4j find and load your config, try setting &quot;-Dlog4j.debug=true&quot; on cmdline, at it will tell a whole lot about its bootstrapping/config loading.

See also: http://logging.apache.org/log4j/1.2/manual.html</description>
		<content:encoded><![CDATA[<p>@Srinivas</p>
<p>Sorry for the late reply. For some reason I had not seen (or maybe forgotten about) your comment, so I first got around to moderating it now.</p>
<p>The file “org.apache.cxf.Logger” should ONLY contain the one line “org.apache.cxf.common.logging.Log4jLogger” to enable log4j logging. Actually configuring log4j log levels etc., you need to look to the log4j project to learn about.</p>
<p>Log4j both have a .properties config file format and a xml config file format you can use. I&#8217;ve always used the xml config file. You can also configure it programmatically.</p>
<p>If you place a file &#8220;log4j.xml&#8221; in the root of your classpath, log4j will automatically find and load that one.</p>
<p>You can also place it outside classpath, and provide the system property &#8220;-Dlog4j.configuration=file://&#8230;.path to your file&#8221;.</p>
<p>If for some some reason you have trouble making log4j find and load your config, try setting &#8220;-Dlog4j.debug=true&#8221; on cmdline, at it will tell a whole lot about its bootstrapping/config loading.</p>
<p>See also: <a href="http://logging.apache.org/log4j/1.2/manual.html" rel="nofollow">http://logging.apache.org/log4j/1.2/manual.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srinivas</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-53302</link>
		<dc:creator>Srinivas</dc:creator>
		<pubDate>Tue, 02 Aug 2011 18:48:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-53302</guid>
		<description>I have followed the following steps and implemented accordingly.But if i want to change the log  level where can i mention(eg: from debug to info) especially console log level during the server startup

1. in your source code make a META-INF/cxf directory

2. create a file in that directory, specificly named “org.apache.cxf.Logger”

3. Write one single line in that file, with the content “org.apache.cxf.common.logging.Log4jLogger”

Make sure that your build process, being it ant, maven or something else, includes the META-INF/cxf catalogue in your compiled output (e.g., ensure it is included in your runtime classpath when your app executes somewhere).</description>
		<content:encoded><![CDATA[<p>I have followed the following steps and implemented accordingly.But if i want to change the log  level where can i mention(eg: from debug to info) especially console log level during the server startup</p>
<p>1. in your source code make a META-INF/cxf directory</p>
<p>2. create a file in that directory, specificly named “org.apache.cxf.Logger”</p>
<p>3. Write one single line in that file, with the content “org.apache.cxf.common.logging.Log4jLogger”</p>
<p>Make sure that your build process, being it ant, maven or something else, includes the META-INF/cxf catalogue in your compiled output (e.g., ensure it is included in your runtime classpath when your app executes somewhere).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srinivas</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-53299</link>
		<dc:creator>Srinivas</dc:creator>
		<pubDate>Tue, 02 Aug 2011 18:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-53299</guid>
		<description>can you post the content for org.apache.cxf.Logger for some default settings</description>
		<content:encoded><![CDATA[<p>can you post the content for org.apache.cxf.Logger for some default settings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Bunney</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-43408</link>
		<dc:creator>Chris Bunney</dc:creator>
		<pubDate>Tue, 14 Dec 2010 12:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-43408</guid>
		<description>Thanks polesen,

Your clarification in the comments
&quot;Create the META-INF/cxf/org.apache.cxf.Logger file somewhere on your classpath. If you are building a war, for instance, it should end up in WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger (or inside a jar in WEB-INF/lib).&quot;

Was just what I needed to get log4j and cxf playing together</description>
		<content:encoded><![CDATA[<p>Thanks polesen,</p>
<p>Your clarification in the comments<br />
&#8220;Create the META-INF/cxf/org.apache.cxf.Logger file somewhere on your classpath. If you are building a war, for instance, it should end up in WEB-INF/classes/META-INF/cxf/org.apache.cxf.Logger (or inside a jar in WEB-INF/lib).&#8221;</p>
<p>Was just what I needed to get log4j and cxf playing together</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Goss</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-40789</link>
		<dc:creator>Frank Goss</dc:creator>
		<pubDate>Thu, 19 Aug 2010 22:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-40789</guid>
		<description>Thanks for the straight-forward and working logging configuration information! I now have some information to work with.

Regards,
Frank</description>
		<content:encoded><![CDATA[<p>Thanks for the straight-forward and working logging configuration information! I now have some information to work with.</p>
<p>Regards,<br />
Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-39915</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Tue, 22 Jun 2010 15:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-39915</guid>
		<description>Aaah, I see, yes. I think what you need is what I have described in &lt;a href=&quot;http://www.techper.net/2008/01/30/viewing-inbound-and-outbound-messages-in-cxf/&quot; rel=&quot;nofollow&quot;&gt;this blogpost about outbound and inbound cxf logging&lt;/a&gt;.

It looks like, that you have turned on log4j debugging of all of cxf. For outbound and inbound logging, you need only turn debugging on for these two logger names:

org.apache.cxf.interceptor.LoggingInInterceptor

org.apache.cxf.interceptor.LoggingOutIntercepto</description>
		<content:encoded><![CDATA[<p>Aaah, I see, yes. I think what you need is what I have described in <a href="http://www.techper.net/2008/01/30/viewing-inbound-and-outbound-messages-in-cxf/" rel="nofollow">this blogpost about outbound and inbound cxf logging</a>.</p>
<p>It looks like, that you have turned on log4j debugging of all of cxf. For outbound and inbound logging, you need only turn debugging on for these two logger names:</p>
<p>org.apache.cxf.interceptor.LoggingInInterceptor</p>
<p>org.apache.cxf.interceptor.LoggingOutIntercepto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharm</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-39912</link>
		<dc:creator>Dharm</dc:creator>
		<pubDate>Tue, 22 Jun 2010 14:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-39912</guid>
		<description>Thanks polesen,

Let me eloborate my Question,

Now my logger is logging all the activities like 
---------------------------------------------------------
 2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@52a852a8
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] interceptors.HolderOutInterceptor     - op: [OperationInfo: {http://services.vzw.com/}getReferenceData]
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] interceptors.HolderOutInterceptor     - op.hasOutput(): true
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] interceptors.HolderOutInterceptor     - op.getOutput().size(): 1
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@51fa51fa
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@52885288
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@4d9c4d9c
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@4ef84ef8
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.interceptor.MessageSenderInterceptor@4fee4fee
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Adding interceptor org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@50065006 to phase prepare-send-ending
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Chain org.apache.cxf.phase.PhaseInterceptorChain@67b667b6 was modified. Current flow:
  pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor]
  post-logical [SoapPreProtocolOutInterceptor]
  prepare-send [MessageSenderInterceptor]
  pre-stream [LoggingOutInterceptor, AttachmentOutInterceptor, StaxOutInterceptor]
  write [SoapOutInterceptor]
  marshal [WrappedOutInterceptor, BareOutInterceptor]
  prepare-send-ending [MessageSenderEndingInterceptor]

2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.interceptor.LoggingOutInterceptor@67ac67ac
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentOutInterceptor@4d424d42
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxOutInterceptor@4d784d78
2010-06-22 10:30:23,274 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Adding interceptor org.apache.cxf.interceptor.StaxOutInterceptor$StaxOutEndingInterceptor@47cc47cc to phase pre-stream-ending
2010-06-22 10:30:23,274 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     - Chain org.apache.cxf.phase.PhaseInterceptorChain@67b667b6 was modified. Current flow:
  pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor]
  post-logical [SoapPreProtocolOutInterceptor]
  prepare-send [MessageSenderInterceptor]
  pre-stream [LoggingOutInterceptor, AttachmentOutInterceptor, StaxOutInterceptor]
  write [SoapOutInterceptor]
  marshal [WrappedOutInterceptor, BareOutInterceptor]
-------------------------------------------------------

Where as what we actually need is the inbound and outbound soap msg/fault....
is it possible by any means to stop this and log only required part.

Thanks
Dharm</description>
		<content:encoded><![CDATA[<p>Thanks polesen,</p>
<p>Let me eloborate my Question,</p>
<p>Now my logger is logging all the activities like<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
 2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@52a852a8<br />
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] interceptors.HolderOutInterceptor     &#8211; op: [OperationInfo: {http://services.vzw.com/}getReferenceData]<br />
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] interceptors.HolderOutInterceptor     &#8211; op.hasOutput(): true<br />
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] interceptors.HolderOutInterceptor     &#8211; op.getOutput().size(): 1<br />
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@51fa51fa<br />
2010-06-22 10:30:23,243 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@52885288<br />
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@4d9c4d9c<br />
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@4ef84ef8<br />
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.interceptor.MessageSenderInterceptor@4fee4fee<br />
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Adding interceptor org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@50065006 to phase prepare-send-ending<br />
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Chain org.apache.cxf.phase.PhaseInterceptorChain@67b667b6 was modified. Current flow:<br />
  pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor]<br />
  post-logical [SoapPreProtocolOutInterceptor]<br />
  prepare-send [MessageSenderInterceptor]<br />
  pre-stream [LoggingOutInterceptor, AttachmentOutInterceptor, StaxOutInterceptor]<br />
  write [SoapOutInterceptor]<br />
  marshal [WrappedOutInterceptor, BareOutInterceptor]<br />
  prepare-send-ending [MessageSenderEndingInterceptor]</p>
<p>2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.interceptor.LoggingOutInterceptor@67ac67ac<br />
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentOutInterceptor@4d424d42<br />
2010-06-22 10:30:23,258 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxOutInterceptor@4d784d78<br />
2010-06-22 10:30:23,274 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Adding interceptor org.apache.cxf.interceptor.StaxOutInterceptor$StaxOutEndingInterceptor@47cc47cc to phase pre-stream-ending<br />
2010-06-22 10:30:23,274 DEBUG [WebContainer : 0] phase.PhaseInterceptorChain     &#8211; Chain org.apache.cxf.phase.PhaseInterceptorChain@67b667b6 was modified. Current flow:<br />
  pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor]<br />
  post-logical [SoapPreProtocolOutInterceptor]<br />
  prepare-send [MessageSenderInterceptor]<br />
  pre-stream [LoggingOutInterceptor, AttachmentOutInterceptor, StaxOutInterceptor]<br />
  write [SoapOutInterceptor]<br />
  marshal [WrappedOutInterceptor, BareOutInterceptor]<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Where as what we actually need is the inbound and outbound soap msg/fault&#8230;.<br />
is it possible by any means to stop this and log only required part.</p>
<p>Thanks<br />
Dharm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-39747</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Fri, 11 Jun 2010 20:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-39747</guid>
		<description>@Dharm: Don&#039;t know about that. But I don&#039;t think so.</description>
		<content:encoded><![CDATA[<p>@Dharm: Don&#8217;t know about that. But I don&#8217;t think so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dharm</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-39746</link>
		<dc:creator>Dharm</dc:creator>
		<pubDate>Fri, 11 Jun 2010 20:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-39746</guid>
		<description>Hi Friends, ur post are really useful. I tried them and it works fine.
But I have a concern, It now logs all the activities.... is it possible to restrict it by any means.

--Thanks
Dharm</description>
		<content:encoded><![CDATA[<p>Hi Friends, ur post are really useful. I tried them and it works fine.<br />
But I have a concern, It now logs all the activities&#8230;. is it possible to restrict it by any means.</p>
<p>&#8211;Thanks<br />
Dharm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-39052</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Wed, 05 May 2010 18:29:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-39052</guid>
		<description>@Paul

The post as such is not about configuring log4j, but about if you already have log4j configured for your own system, how to make CXF log through that same configuration instead of JDK logger.

So, if your problems are related to log4j configuration itself, this post will not help you that much.

One tip though: A good place to start with log4j config debugging is starting your app with &quot;-Dlog4j.debug=true&quot;, as this will make it output how it initializes itself at bootstrap.</description>
		<content:encoded><![CDATA[<p>@Paul</p>
<p>The post as such is not about configuring log4j, but about if you already have log4j configured for your own system, how to make CXF log through that same configuration instead of JDK logger.</p>
<p>So, if your problems are related to log4j configuration itself, this post will not help you that much.</p>
<p>One tip though: A good place to start with log4j config debugging is starting your app with &#8220;-Dlog4j.debug=true&#8221;, as this will make it output how it initializes itself at bootstrap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-39051</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 05 May 2010 16:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-39051</guid>
		<description>Hi Guys

Thanks for the useful info. i tried the steps above but still cannot see the logging work. no one mentioned where to create the log4j property or xml file to specify the log file name and location. can some one advise pl....

regards
Paul Henderson</description>
		<content:encoded><![CDATA[<p>Hi Guys</p>
<p>Thanks for the useful info. i tried the steps above but still cannot see the logging work. no one mentioned where to create the log4j property or xml file to specify the log file name and location. can some one advise pl&#8230;.</p>
<p>regards<br />
Paul Henderson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyrille Le Clerc</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-39039</link>
		<dc:creator>Cyrille Le Clerc</dc:creator>
		<pubDate>Tue, 04 May 2010 22:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-39039</guid>
		<description>FYI : CXF will also support logging through SLF4J in the forthcoming 2.2.8 version thanks to the org.apache.cxf.common.logging.Slf4jLogger .

Details are available on http://cxf.apache.org/docs/debugging-and-logging.html , paragraph &quot;Using SLF4J Instead of java.util.logging (since 2.2.8)&quot;.

Hope this helps,

Cyrille</description>
		<content:encoded><![CDATA[<p>FYI : CXF will also support logging through SLF4J in the forthcoming 2.2.8 version thanks to the org.apache.cxf.common.logging.Slf4jLogger .</p>
<p>Details are available on <a href="http://cxf.apache.org/docs/debugging-and-logging.html" rel="nofollow">http://cxf.apache.org/docs/debugging-and-logging.html</a> , paragraph &#8220;Using SLF4J Instead of java.util.logging (since 2.2.8)&#8221;.</p>
<p>Hope this helps,</p>
<p>Cyrille</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-38376</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Wed, 07 Apr 2010 18:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-38376</guid>
		<description>@Saravanan: &quot;...printed in single line&quot;.

That is strange. Don&#039;t know what happen there. The inbound and outbound messages are logged on two separately named loggers, so they should come as separate lines too.</description>
		<content:encoded><![CDATA[<p>@Saravanan: &#8220;&#8230;printed in single line&#8221;.</p>
<p>That is strange. Don&#8217;t know what happen there. The inbound and outbound messages are logged on two separately named loggers, so they should come as separate lines too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saravanan Ramamoorthy</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-38346</link>
		<dc:creator>Saravanan Ramamoorthy</dc:creator>
		<pubDate>Tue, 06 Apr 2010 07:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-38346</guid>
		<description>@polesen

The extra log is due to I have configured Logging Interceptors in log4j.properties. Thanks for your continuous help. Finally it works fine. Thanks polesen. 

Final clarification:
Now the logged Inbound and Outbound messages are printed in single line. Is there possible to log the messages as seperate lines.</description>
		<content:encoded><![CDATA[<p>@polesen</p>
<p>The extra log is due to I have configured Logging Interceptors in log4j.properties. Thanks for your continuous help. Finally it works fine. Thanks polesen. </p>
<p>Final clarification:<br />
Now the logged Inbound and Outbound messages are printed in single line. Is there possible to log the messages as seperate lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/comment-page-1/#comment-38332</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Mon, 05 Apr 2010 15:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/01/30/configuring-cxf-logging-to-go-through-log4j/#comment-38332</guid>
		<description>@Saravanan:

&quot;logs twice&quot;.

Hmm. Strange. Could you provide a small sample of a couple of log statements as they appear when you see them twice?</description>
		<content:encoded><![CDATA[<p>@Saravanan:</p>
<p>&#8220;logs twice&#8221;.</p>
<p>Hmm. Strange. Could you provide a small sample of a couple of log statements as they appear when you see them twice?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

