Chris,
Check the following:
1) Make sure you have a commons-logging.properties (check the wiki) in your
WEB-INF/classes directory.
2) Make sure you have the latest commons-logging.jar (1.3.1 I believe?) and
the latest log4j.jar
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)
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...
Bradford A. Folkens
[EMAIL PROTECTED]
-----Original Message-----
From: Chris Joelly [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 8:21 AM
To: [EMAIL PROTECTED]
Subject: Two Turbine apps in one tomcat / logging problems
Hello!
i have some problems getting logging working correct with two turbine
2.3 based applications in one tomcat container:
* every webapp has a different applicationRoot defined in web.xml
when i start tomcat i only can see the first turbine app "booting" in the
logfile catalina.out, so where does the log messages of the second turbine
app do?
and the second problem is, that only the first turbine app loggs to the
configured logfiles, which i have configured through:
WEB-INF/conf/TurbineResources.properties:
log4j.file = /WEB-INF/conf/Log4j.properties
Log4j.properties:
...
log4j.appender.turbine = org.apache.log4j.FileAppender
log4j.appender.turbine.file = ${applicationRoot}/logs/turbine.log
log4j.appender.turbine.layout = org.apache.log4j.PatternLayout
log4j.appender.turbine.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.turbine.append = false ...
what's happening with logging of the second turbine app?
btw: the two turbine apps are almost the same, they only use different
databases configured through Torque.
thx, 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
[EMAIL PROTECTED]
http://www.unycom.com
Entweder ich gehe links vorbei, oder ich gehe rechts vorbei.
-- Ludwig K�gl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]