LoggableComponent ?
Tom Zeller
tzeller at dragonacea.biz
Wed Jun 19 16:24:43 EDT 2013
> 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.
Pretty much thought the same thing, that MDC would cause later woe.
What about just overriding toString() in lieu of getLogPrefix() ?
More information about the dev
mailing list