Re: LoggingFeature with slf4j

2019-07-27 Thread Romain Manni-Bucau
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  |  Blog
 | Old Blog
 | Github  |
LinkedIn  | Book



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


Re: LoggingFeature with slf4j

2019-07-27 Thread vEnkaTa mohAna rAo SriperumbUdUru
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  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
>


LoggingFeature with slf4j

2019-07-26 Thread Jim Ma
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