tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sathwik"<sath...@apache.org>
Subject Re: How to enable Catalina logs when using Embedded Tomee
Date Fri, 04 Nov 2016 09:35:10 GMT
openejb.log.factory=slf4j 
is already set in system.properties and it is already in the classpath

Do we need to explicitly initialize?
 org.apache.openejb.loader.SystemInstance.init(properties);
 org.apache.openejb.util.Logger.configure(properties);


On 2016-11-04 14:32 (+0530), Romain Manni-Bucau <rmannibucau@gmail.com> wrote: 
> is it about the 4-5 tomcat lines done through JUL? Wonder if it still
> happens on 7.0.2-SNAPSHOT.
> 
> Anyway a workaround since you are bound to tomee:
> 
> org.apache.openejb.loader.SystemInstance.init(properties);
> org.apache.openejb.util.Logger.configure(properties);
> 
> ensure to put in properties you setup openejb.log.factory=slf4j
> 
> 
> 
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://blog-rmannibucau.rhcloud.com> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau>
|
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> <https://javaeefactory-rmannibucau.rhcloud.com>
> 
> 2016-11-04 9:16 GMT+01:00 Sathwik <sathwik@apache.org>:
> 
> > Here is the packaged server
> > https://repository.apache.org/content/groups/snapshots/org/
> > apache/ode/ode-tomee-server/1.3.7-SNAPSHOT/ode-tomee-server-
> > 1.3.7-SNAPSHOT.zip
> >
> > server startup script is under bin/start.sh
> > tomee configuration files is under conf/
> >
> > openejb.log.factory=slf4j
> > conf/log4j2.xml
> >
> > Would it be possible for you to have a check?
> >
> > On 2016-11-04 13:31 (+0530), Romain Manni-Bucau <rmannibucau@gmail.com>
> > wrote:
> > > Is the question about log4j2? if so you can set
> > openejb.log.factory=log4j2,
> > > if not and you rely on JUL you rely on the *JVM* (not tomcat) settings
> > and
> > > standard JUL configuration.
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <https://blog-rmannibucau.rhcloud.com> | Old Blog
> > > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> > rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > >
> > > 2016-11-04 8:47 GMT+01:00 Sathwik <sathwik@apache.org>:
> > >
> > > > Hi,
> > > >
> > > > The application is packaged with SLF4J + Log4j2 and starts Tomee 7.0.1
> > > > embedded container. Is there a way to enable catalina logs.
> > > >
> > > > regards,
> > > > sathwik
> > > >
> > >
> >
> 

Mime
View raw message