You can try this:
Do not include/use the log4j jar file. So it will use the commons
logging library.
Put this at the start of your program.
System.setProperty("org.apache.commons.logging.simplelog.defaultlog",
"error");
So it will only log errors.
YMMV...
On Mon, Mar 21, 2011 at 5:01 PM, Monica_G <[email protected]> wrote:
>
> Hi,
>
> Is there a way to suppress logging of httpclient.wire.content for SSL
> connections? The data being sent is sensitive information and I do not want
> it to show up in log files. I realize I can configure my log4j.properties
> file to suppress logging this category, or log at INFO level or above.
> However, if someone accidentally changes or replaces the log4j.properties
> file then the sensitive data could be logged.
>
> Is there any other way to stop the httpclient.wire.content from being
> logged, or to at least have it log the encrypted format of the data?
>
> I am using HTTPClient version 3.0.1. I checked to see if a newer version
> would do what I asked above, but couldn't find it either.
>
> Thank you
>
> Monica
>
> --
> View this message in context:
> http://old.nabble.com/logging-httpclient.wire.content-and-SSL-tp31203163p31203163.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]