You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Chris Joelly <ch...@unycom.com> on 2004/05/03 10:46:01 UTC

Re: Two Turbine apps in one tomcat / logging problems

Hello!

Am Fri, Apr 30, 2004 at 08:12:30AM -0500, Folkens, Brad meinte:
> 
> 1) Make sure you have a commons-logging.properties (check the wiki) in your
> WEB-INF/classes directory.

ok. i have a commons-logging.properties with the following contents:

org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

> 2) Make sure you have the latest commons-logging.jar (1.3.1 I believe?)  and
> the latest log4j.jar

i only found a commons-logging.jar version 1.0.3. is this ok?

> 3) Make sure your Log4j.properties file has the correct absolute
> directories, or use the ${applicationRoot} variable (but make sure it's set
> in web.xml to webContext or an absolute)

i set applicationRoot in web.xml to an absolute path and used ${applicationRoot}
in the Log4j.properties of both webapps.

> Hope that helps - there's a wiki title SimpleLog or something on the Turbine
> wiki.  What is basically happening in your first app (that's logging to the
> console) is that commons-logging is defaulting to SimpleLog instead of
> Log4J.  The second app's logger might be getting configured by something
> else, and so the logs are nowhere to be found.  Double check the /logs
> directory or wherever it is configured in your Log4J.properties file...

nothing changed. i only get log files from the first app. the log
messages from the second app are elsewhere ... ;-)

Chris

-- 
mit freundlichen Grüßen / with kind regards
 
Ing. Christian Jölly @ Solutions
unycom  Information Technology Services GmbH
A-8042 Graz | Schmiedlstraße 1 / III

Tel: ++43 (0)316 / 818 828 - 30
Fax: ++43 (0)316 / 818 828 - 38
chris.joelly@unycom.com
http://www.unycom.com

In der moralischen Entrüstung schwingt auch immer die Besorgnis mit,
vielleicht etwas verpaßt zu haben.
		-- Jean Genet


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


RE: Two Turbine apps in one tomcat / logging problems

Posted by David Demner <tu...@demner.com>.
Hi Chris,

> no i use a different file name for turbine.log in Log4j.properties, and
> now i have two turbine log files in the directory configured with the
> first webapp. so it looks like that both webapps are using the same
> applicationRoot directory, but they are set to different values in each
> web.xml file... strange...

I hard coded the applicationRoot in the Log4j.properties file for my
webapps.  Unfortunately, it makes moving from dev to prod more
complicated...  But everything is logging in the correct place at least.

David


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


Re: Two Turbine apps in one tomcat / logging problems

Posted by Chris Joelly <ch...@unycom.com>.
Hello again!

Am Mon, May 03, 2004 at 10:46:01AM +0200, Chris Joelly meinte:
> 
> nothing changed. i only get log files from the first app. the log
> messages from the second app are elsewhere ... ;-)

no i use a different file name for turbine.log in Log4j.properties, and
now i have two turbine log files in the directory configured with the
first webapp. so it looks like that both webapps are using the same
applicationRoot directory, but they are set to different values in each
web.xml file... strange...

Chris

-- 
mit freundlichen Grüßen / with kind regards
 
Ing. Christian Jölly @ Solutions
unycom  Information Technology Services GmbH
A-8042 Graz | Schmiedlstraße 1 / III

Tel: ++43 (0)316 / 818 828 - 30
Fax: ++43 (0)316 / 818 828 - 38
chris.joelly@unycom.com
http://www.unycom.com

Die Frage war eigentlich nur als Provokation für das aktuelle
Chaos gedacht.  Aber es ist offenbar noch schlimmer als
ich es mir in meinen kühnsten Träumen ausdenken kann...
		-- Martin 'Joey' Schulze


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