cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Switching Cayenne to SLF4J
Date Wed, 29 Mar 2017 05:52:31 GMT
Also AFAIK commons-logging does not support MDC [1]. The use of MDC may improve Cayenne transaction
tracking in the logs.

Andrus

[1] https://logback.qos.ch/manual/mdc.html

> On Mar 28, 2017, at 1:53 AM, Mike Kienenberger <mkienenb@gmail.com> wrote:
> 
> On Mon, Mar 27, 2017 at 6:20 PM, Aristedes Maniatis <ari@maniatis.org> wrote:
>> * using log4j or other library
> 
> Pick one logging library (ie, log4j).  Add the "log to log4j from slf4j" jar.
> For all other logging libraries, add "log to slf4j from *" jars.
> 
> It's pretty much that simple, although really badly designed logging
> libraries like java.util.logging may require extra steps or run
> poorly.
> 
> 
>> * having other libraries in the classpath with different versions of slf4j
> 
> the slf4j api is pretty much backward compatible no matter what
> version you use, and jars don't inline slf4j.   So you can just pick
> whatever version you like, generally the latest slf4j version
> available.


Mime
View raw message