I would put AccountNo, SecretCode, etc in MDC key-value pairs and apply an appropriate PatternLayout that leaves out the MDC fields you don't want to show.
dirk > -----Original Message----- > From: Tasso The Developer [mailto:[EMAIL PROTECTED] > Sent: woensdag 2 februari 2005 17:03 > To: [email protected] > Subject: 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(r) > 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(r) Premium right now > and get the > first two months FREE*. > > > --------------------------------------------------------------------- > 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]
