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

ceki ceki at qos.ch
Thu Sep 27 22:39:00 CEST 2012


Hi Libor,

The MDC is not part of any log statement. (The MDC is stored as a thread 
local.) I don't see why you want to pass MDC map in the "Object context" 
parameter.

What type of information do people pass via "Object context"? That's the 
question which seems most relevant to me.


On 27.09.2012 22:29, Libor Jelinek wrote:
> 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)



-- 
Ceki
http://twitter.com/ceki


More information about the slf4j-dev mailing list