Hi,

i just tested -Dopenejb.log.factory=slf4j removing slf4j-jdk14 from tomee
and adding logback lib + a logback.xml. It works as epected knowing this
property only affects what it can (openejb, tomee (not tomcat part),
OWB...) frameworks.

Tomcat doesn't have a facade for logging so it is hard to switch it without
jul to slf4j workarounds.

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/3/7 Harald Wellmann <[email protected]>

> This is probably not the "official" approach (if there is one), but it
> worked for me:
>
> http://hwellmann.blogspot.de/**2012/11/logging-with-slf4j-**
> and-logback-in.html<http://hwellmann.blogspot.de/2012/11/logging-with-slf4j-and-logback-in.html>
>
> Best regards,
> Harald
>
>
> Am 07.03.2013 20:14, schrieb Will Hoover:
>
>  I noticed that 
> http://openejb.apache.org/**properties-listing.html<http://openejb.apache.org/properties-listing.html>does
>  not
>> have an entry for openejb.log.factory?
>>
>>
>>
>> What is the process for getting Tomee to use slf4j/logback? I tried adding
>> the following to conf/system.properties, but it doesn't seem to work as
>> expected. The catalina log shows that it's using
>> org.apache.openejb.util.**Slf4jLogStream, but all of the individual
>> application logs are also going to the catalina log rather than the log
>> file
>> defined in logback.xml
>>
>>
>>
>> openejb.log.factory=org.**apache.openejb.util.**Slf4jLogStreamFactory
>>
>>
>>
>>
>>
>

Reply via email to