[slf4j-dev] StaticMDCBinder but not IMDCFactory

Gunnar Wagenknecht gunnar at wagenknecht.org
Thu Mar 12 19:10:04 CET 2009


Ceki Gulcu schrieb:
> Hello Gunnar,
> 
> MDC is by construction a class with static methods. I fail to see how
> IMDCFactory could be made to create a fixed and static class. It just
> does not make sense. Have you noticed the MDCAdapter interface?

Sorry, I might not have been clear enough.

StaticMDCBinder uses a public static final field SINGLETON.
StaticLoggerBinder and StaticMarkerBinder use a public static method
getSingleton().

StaticLoggerBinder and StaticMarkerBinder implements and interface which
defines a contract for the public getter.
StaticMDCBinder does not.

I was wondering if the programming pattern should be the same in
StaticMDCBinder to make adoption easier and to have a contract for the
getMDCA and getMDCAdapterClassStr methods as we have for
StaticLoggerBinder and StaticMarkerBinder.

-Gunnar

-- 
Gunnar Wagenknecht
gunnar at wagenknecht.org
http://wagenknecht.org/




More information about the slf4j-dev mailing list