You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Marcel Vehof <ma...@wisdom.nl> on 2003/11/03 14:29:50 UTC

use of log4j in Turbine 2.3


hi,

I'm using Turbine 2.3 on a JBoss 3.2.2 application server
with integrated Tomcat.
deploying an EAR file containing a WAR with a Turbine 
application works perfectly, except that Turbine seems
to use log4j and needs a log4j configuration file
that is accesible for the servlet container (under 
WEB-INF/config for instance)

this is not what I want, because I would like my
Turbine webapplication to use the log4j system defined
by JBoss and not try to initialize an own logging
(sub)system. 

when looking at the source code for the Turbine
servlet, I find that the system fails when it cannot
find the log4j configuration file in the described way. 

does anyone know how to solve this problem
(or would the only solution be a patch in
Turbine.java) ?

regards, Marcel

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: use of log4j in Turbine 2.3

Posted by Eric Pugh <ep...@upstate.com>.
There was some an earlier post about this..  Turbine currently seems to
hardcoded to use log4j only.  It has a chunk of code in Turbine.java that
uses Log4Factory.  However, since everything uses commons logging, to me it
seems like we should have a TR.props that specifies what logging scheme to
use.  Log4j, jdk1.4 logging, etc..

A patch/with testcase, would be very welcome..

ERic

> -----Original Message-----
> From: Marcel Vehof [mailto:marcel@wisdom.nl]
> Sent: Monday, November 03, 2003 2:30 PM
> To: turbine-user@jakarta.apache.org
> Subject: use of log4j in Turbine 2.3
>
>
>
>
> hi,
>
> I'm using Turbine 2.3 on a JBoss 3.2.2 application server
> with integrated Tomcat.
> deploying an EAR file containing a WAR with a Turbine
> application works perfectly, except that Turbine seems
> to use log4j and needs a log4j configuration file
> that is accesible for the servlet container (under
> WEB-INF/config for instance)
>
> this is not what I want, because I would like my
> Turbine webapplication to use the log4j system defined
> by JBoss and not try to initialize an own logging
> (sub)system.
>
> when looking at the source code for the Turbine
> servlet, I find that the system fails when it cannot
> find the log4j configuration file in the described way.
>
> does anyone know how to solve this problem
> (or would the only solution be a patch in
> Turbine.java) ?
>
> regards, Marcel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org