Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing content from multiple sources being logged

Status
Not open for further replies.

sdwood

Programmer
Jun 7, 2006
2
0
0
GB
I work on a large internet application, parts of the system create base64 encoded document content which is being logged, which is obivously pointless.

The entry point to the application will log by default the XML it is about to respond with (sometimes this will contain base64 encoded content, usually not). We can change the threshold for this class so it wont log anything, or write a custom appender that checks for base64 encoded content but I don't fancy that much. Or maybe a Filter ?

Any advice much appreciated.

thanks,
Steve.
 
Sorry I should add for clarity that the problem is really that one class is logging a bunch of XML generated elsewhere in the system, we want to suppress logging based on the content of the XML.

Steve.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top