Don't have the history but looks like it is only for the MDC since LogUtils supports slf4j. Maybe a feature to move to logutils abstraction (org.apache.cxf.logging.MDC?)
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le sam. 27 juil. 2019 à 08:11, vEnkaTa mohAna rAo SriperumbUdUru < mohanara...@gmail.com> a écrit : > Why slf4j : The Simple Logging Facade for Java (SLF4J) serves as a simple > facade or abstraction for various logging frameworks (e.g. > *java.util.logging*, logback, log4j) allowing the end user to plug in the > desired logging framework at *deployment* time. > Rerf : https://www.slf4j.org/ > > Wrapped implementation logback, log4j and jdk14 > > In order to give more flexibility to the users to decide which logging > framework according to their needs. > > Thanks, > Mohana Rao S V > > On Fri, Jul 26, 2019 at 2:52 PM Jim Ma <mail2ji...@gmail.com> wrote: > > > Do you remember why we need slf4j dependency in cxf-rt-features-logging ? > > Is it because it needs support MDC in > > > > > https://github.com/apache/cxf/blob/master/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/slf4j/Slf4jEventSender.java > > ? > > Can the slf4j logger be replaced with cxf's LogUtils.getLogger and it > > won't include a slf4j dependency if user uses jdk logging? > > > > Thanks, > > Jim > > >