[slf4j-dev] Transactions in slf4j?

Ceki Gulcu ceki at qos.ch
Mon Jun 1 20:06:27 CEST 2009


Hi Thorbjoern,

You have two tools at your disposal: markes and MDC. Do you think you
could come up with something using those two primitives?

Thorbjoern Ravn Andersen wrote:
> Hi Ceki.
> 
> I am looking at the AS/400 Collection Services where it would be 
> interesting to write a logback appender for.
> 
> It has a notion of a "transaction context" where you basically say 
> "transaction start" (gives A as a handle), "log stuff in context A" 
> (repeatedly), "transaction A stop"
> 
> How would you suggest mapping this to the slf4j API?
> 
> Thanks :)
> 

-- 
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