yep
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-05-19 16:33 GMT+02:00 Lars-Fredrik Smedberg <[email protected]>: > @Romain > > Yes I got that part... and I guess this way is better if I only want to > redirect OWB to SLF4J and not any other included library that uses JUL.... > right? > > On Tue, May 19, 2015 at 4:30 PM, Romain Manni-Bucau <[email protected] > > wrote: > >> you use JUL as an API but you don't enter in JUL logging system actually. >> This is not a handler redirecting data to slf4j but directly a routing to >> slf4j >> >> >> Romain Manni-Bucau >> @rmannibucau <https://twitter.com/rmannibucau> | Blog >> <http://rmannibucau.wordpress.com> | Github >> <https://github.com/rmannibucau> | LinkedIn >> <https://www.linkedin.com/in/rmannibucau> | Tomitriber >> <http://www.tomitribe.com> >> >> 2015-05-19 16:25 GMT+02:00 Lars-Fredrik Smedberg <[email protected]>: >> >>> Thanks for the pointer... I guess this is what the JUL to SLF4j bridge >>> does also but then again I would get all libraries using JUL redirected.... >>> ? >>> >>> Regards >>> LF >>> >>> On Tue, May 19, 2015 at 4:22 PM, Romain Manni-Bucau < >>> [email protected]> wrote: >>> >>>> Hi >>>> >>>> >>>> you can implement org.apache.webbeans.logger.WebBeansLoggerFactory and >>>> configure it setting the system property openwebbeans.logging.factory >>>> >>>> Your implementation would surely be this one >>>> https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=container/openejb-core/src/main/java/org/apache/openejb/log/logger/Slf4jLogger.java;h=d093a40473db4ab1b83822d367a8956bc18b8e6d;hb=HEAD >>>> >>>> >>>> >>>> Romain Manni-Bucau >>>> @rmannibucau <https://twitter.com/rmannibucau> | Blog >>>> <http://rmannibucau.wordpress.com> | Github >>>> <https://github.com/rmannibucau> | LinkedIn >>>> <https://www.linkedin.com/in/rmannibucau> | Tomitriber >>>> <http://www.tomitribe.com> >>>> >>>> 2015-05-19 16:12 GMT+02:00 Lars-Fredrik Smedberg <[email protected]>: >>>> >>>>> Hi! >>>>> >>>>> As far as I understand OWB is using JUL for logging. In our production >>>>> environment we would like to control the log outputs (so they e.g. not >>>>> appear on the console). Our application uses SLF4J and a Log4j bridge to >>>>> log using different appenders depending on our requirement. Is it a good >>>>> idea to use the JUL to SLF4j bridge and then control the logging using our >>>>> log4j.properties file the same way we do with the application? Any other >>>>> good suggestions? >>>>> >>>>> Thanks >>>>> Lars-Fredrik >>>>> >>>>> -- >>>>> Med vänlig hälsning / Best regards >>>>> >>>>> Lars-Fredrik Smedberg >>>>> >>>>> STATEMENT OF CONFIDENTIALITY: >>>>> The information contained in this electronic message and any >>>>> attachments to this message are intended for the exclusive use of the >>>>> address(es) and may contain confidential or privileged information. If >>>>> you are not the intended recipient, please notify Lars-Fredrik Smedberg >>>>> immediately at [email protected], and destroy all copies of this >>>>> message and any attachments. >>>>> >>>> >>>> >>> >>> >>> -- >>> Med vänlig hälsning / Best regards >>> >>> Lars-Fredrik Smedberg >>> >>> STATEMENT OF CONFIDENTIALITY: >>> The information contained in this electronic message and any >>> attachments to this message are intended for the exclusive use of the >>> address(es) and may contain confidential or privileged information. If >>> you are not the intended recipient, please notify Lars-Fredrik Smedberg >>> immediately at [email protected], and destroy all copies of this >>> message and any attachments. >>> >> >> > > > -- > Med vänlig hälsning / Best regards > > Lars-Fredrik Smedberg > > STATEMENT OF CONFIDENTIALITY: > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > address(es) and may contain confidential or privileged information. If > you are not the intended recipient, please notify Lars-Fredrik Smedberg > immediately at [email protected], and destroy all copies of this > message and any attachments. >
