[slf4j-dev] Transactions in slf4j?

Thorbjoern Ravn Andersen ravn at runjva.com
Mon Jun 1 22:09:11 CEST 2009


Ceki Gulcu skrev:
>
>
> Here is a idea:
>
> Marker TX_BEGIN = MarkerFactory.getMarker("TX_BEGIN");
> Marker TX_END= MarkerFactory.getMarker("TX_END");
>
> try {
>   logger.info(TX_BEGIN, "beginning tx");
>   doSomething();
> } finally {
>   logger.info(TX_END, "ending tx");
> }
Ok.  If I understand this correctly, it still needs additional logback 
configuration to map the above to snippets calling the appropriate 
methods hooking into the native logging system?

-- 
  Thorbjørn Ravn Andersen  "...plus... Tubular Bells!"




More information about the slf4j-dev mailing list