In trunk, LoggingEvent has some mutable fields (message, renderedmessage, 
others).

I take advantage of the mutability of renderedmessage in ReflectionFilter 
(which isn't in the filters module yet, btw) - if a 'message' field exists on 
the logged object, the logging event's rendered message is set to the value of 
that property.

I'd also like to take advantage of this feature to remove confidential 
information from logs (write a filter that can strip SSNs, emails from logs 
based on regexs.

There aren't currently great options available - register a renderer (pretty 
inflexible) or move the code to a receiver.

Thoughts on at least making renderedmessage mutable?  I'd like to both add 
reflectionfilter to filters and write this new filter.


Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR  97201

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185

[EMAIL PROTECTED]

www.comotivsystems.com

Reply via email to