arthurblake / log4jdbc

log4jdbc is a Java JDBC driver that can log SQL and/or JDBC calls (and optionally SQL timing information) for other JDBC drivers using the Simple Logging Facade For Java (SLF4J) logging system.
506 stars 148 forks source link

Enhancement: Add ability to set SpyLogDelegatorSelector #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use logback and I need that each servlet use it's own LoggerContext.
See http://logback.qos.ch/manual/loggingSeparation.html
But because in SpyLogFactory:
  private static SpyLogDelegator logger;
This is not posible.
So I need the ability to set SpyLogDelegatorSelector and for example implement 
it to use different SpyLogDelegator for each thread.
For example, it's done in logback:
http://logback.qos.ch/apidocs/ch/qos/logback/classic/selector/ContextSelector.ht
ml

Original issue reported on code.google.com by MatveevA...@gmail.com on 6 Dec 2012 at 4:53

GoogleCodeExporter commented 9 years ago

Original comment by arthur.b...@gmail.com on 6 Dec 2012 at 5:46