[slf4j-dev] StaticMDCBinder but not IMDCFactory
Ceki Gulcu
ceki at qos.ch
Thu Mar 12 13:40:18 CET 2009
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?
Cheers,
Gunnar Wagenknecht wrote:
> Hi,
>
> I started implementing a native SLF4J OSGi logger which will be part of
> our OSGi server framework (www.eclipse.org/cloudfree).
>
> I wonder if it would be possible to define an IMDCFactory factory which
> specifies the contract of StaticMDCBinder further? It seems a bit odd
> that this class follows different conventions/rules than the other
> Static..Binder classes.
>
> Are there technical limitations which prevents this? I could that a
> backward compatibility issue could be addressed with some reflection.
>
> Are you interested in a patch for this?
>
> -Gunnar
>
>
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the slf4j-dev
mailing list