openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars-Fredrik Smedberg <itsme...@gmail.com>
Subject Re: OWB and logging
Date Tue, 19 May 2015 14:25:54 GMT
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 <rmannibucau@gmail.com>
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 <itsmeden@gmail.com>:
>
>> 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 itsmeden@gmail.com, 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 itsmeden@gmail.com, and destroy all copies of this
message and any attachments.

Mime
View raw message