You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Tasso The Developer <ja...@hotmail.com> on 2005/02/02 17:03:13 UTC

Filtering out data while logging.

How would I go about masking or removing certain information so it doesn't 
get logged?

For instance...

log.info("Received data from partner: AccountNo=12345, Secret Code=qwerty; 
MessageCode=100");

So in the log it would look like...

Received data from partner: Account=12345, Secret Code=******; 
MessageCode=100

_________________________________________________________________
Take charge with a pop-up guard built on patented MicrosoftŽ SmartScreen 
Technology. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSNŽ Premium right now and get the 
first two months FREE*.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org