You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Nath, Niraj" <Ni...@cns-inc.com> on 2008/02/14 16:34:51 UTC

how to disable logging for the client api

Hi

I'm using axis2 1.0 war distribution for some webservices hosted on my
server(websphere 6.1). Besides these I also have some webservice client
code ( outside axis2 war ) which uses axis2 ServiceClient api to call
some axis web services hosted on another servers. To make the
ServiceClient & associated api available to our client code we have
taken all the jars from axis2.war/WEB-INF/lib, merged to create another
jar out of that & kept that inside the ear (in the path via manifest
file) ...

 

Now when I use this client it generates lots of logs which I want to get
rid of - log looks like -.... I want to disable all these but not sure
how to do that ...Can anyone help me here ?

========================================================================
=======================================================

 [2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.execute(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.writeRequest(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.generateRequestLine(HttpConnection, String, String,
String, String)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG httpclient.wire.header  - >> "POST
/axis2/services/ClaimsSearchByService HTTP/1.1[\r][\n]"

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpConnection  -
enter HttpConnection.print(String)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpConnection  -
enter HttpConnection.write(byte[])

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpConnection  -
enter HttpConnection.write(byte[], int, int)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosingMethod  - enter
EntityEnclosingMethod.addRequestHeaders(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG
org.apache.commons.httpclient.methods.ExpectContinueMethod  - enter
ExpectContinueMethod.addRequestHeaders(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.addUserAgentRequestHeaders(HttpState,
HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
Adding Host request header

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpState  -
enter HttpState.getCookies()

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.cookie.CookieSpec
- enter CookieSpecBase.match(String, int, String, boolean, Cookie[])

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosingMethod  - enter
EntityEnclosingMethod.addContentLengthRequestHeader(HttpState,
HttpConnection)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosingMethod  - enter
EntityEnclosingMethod.getRequestContentLength()

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG
org.apache.commons.httpclient.methods.PostMethod  - enter
PostMethod.hasRequestContent()

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosingMethod  - enter
EntityEnclosingMethod.hasRequestContent()

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpMethodBase  -
HttpMethodBase.addRequestHeader(Header)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG
org.apache.commons.httpclient.methods.EntityEnclosingMethod  - enter
EntityEnclosingMethod.renerateRequestBody()

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG httpclient.wire.header  - >> "SOAPAction:
"getClaimsByCriteria"[\r][\n]"

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpConnection  -
enter HttpConnection.print(String)

[2/13/08 16:33:01:093 EST] 00000025 SystemOut     O 1535703
[WebContainer : 2] DEBUG org.apache.commons.httpclient.HttpConnection  -
enter HttpConnection.write(byte[])

 

 

Regards

 

Niraj Nath

CNSI

Ph - 240 399 2104

 




This electronic message contains information from CNSI, which may be company sensitive, proprietary, privileged or otherwise protected from disclosure. The information is intended to be used solely by the intended recipient(s). If you are not an intended recipient any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify the sender immediately and delete all copies of this message.