LoggableComponent ?

Brent Putman putmanb at georgetown.edu
Wed Jun 19 16:22:05 EDT 2013


On 6/19/13 4:02 PM, Tom Zeller wrote:
> MDC springs to mind, but it limits logger implementations. I have
> tried a couple of times with varying success. Maybe there is something
> else.

I thought about MDC for this too.  I think technically it could work,
but is probably abusing the intent of MDC.  As in: wrap the logging
calls with a method that the sets a MDC 'logPrefix' variable; then calls
the log method; and then clears 'logPrefix'.  I don't think MDC
variables are intended to be used with that frequency, though, so this
is probably a bad idea.


More information about the dev mailing list