开发者

SLF4J vs. Jboss Logging

开发者 https://www.devze.com 2023-03-31 16:38 出处:网络
I\'ve noticed that many of the redhat/jboss frameworks have started migrating to jboss-logging where they\'ve previously used SLF4J, for example hibernate 4.0.Jboss-logging can delegate to SLF4J

I've noticed that many of the redhat/jboss frameworks have started migrating to jboss-logging where they've previously used SLF4J, for example hibernate 4.0. Jboss-logging can delegate to SLF4J

What are the advantage开发者_运维百科s of using jboss-logging over e.g. SLF4J with Logback?


Technically, none. I suspect the move is mostly a political one.

JBossLlogging is itself just an API much like SLF4J, and therefore just delegates to an actual logging implementation. By using their own abstraction, the insulate themselves from changes to the SLF4J API (which has already shown itself to be non-backwards-compatible across versions).

Whether or not this is a good idea is debatable.

0

精彩评论

暂无评论...
验证码 换一张
取 消