[slf4j-dev] Equinox Logger log(Object context, ...) methods

Libor Jelinek ljelinek at virtage.com
Thu Sep 27 22:29:20 CEST 2012


Hello Ceki!
I'm think about how to correctly bridge method
org.eclipse.equinox.log.Logger.log(Object context, int level, String
msg) ([1]) to SLF4J API. Please notice a  "Object context" parameter
which is arbitrary object associated with log entry just being logged.

Because MDC is conceptually <String, String> map, so only way is
probably use marker for to store "Object". Is it right, (Ceki)?

Libor

[1] http://javasourcecode.org/html/open-source/eclipse/eclipse-3.5.2/org/eclipse/equinox/log/Logger.html#log(java.lang.Object,
int, java.lang.String)


More information about the slf4j-dev mailing list