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

_______________________________________________
dev mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to