You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Joe Polanik <jP...@cds.duke.edu> on 2002/05/07 20:54:19 UTC
Log4j in a shared JVM application?
I have an application using JSP/servlets with a MySQL database. I develop
on Windoze running Tomcat as local host, but deploy to a hosting service
running Tomcat (shared JVM) on a linux platform (the 'public site'). I'm
attempting to use log4j 1.1.3 for logging purposes.
The problem: Everything runs just fine on my machine but not on the public
site. (How many times have you heard that one!?). On the public site the
app works but fails to log anything. So I thought I'd ask for advice.
First, has anyone had problems using log4j in an app sitting in a shared JVM?
I'm using a log4j.properties file located in /WEB-INF/classes to create a
Rolling File Appender. I'm wondering how to state the path to the log file
(log/myLogFile.log) if config.getRealPath("/") gives /home/trionica but
System.getProperty("user.dir") gives /<path to Tomcat>/.
Would I say /home/trionica/log/myLogFile.log or /<path to Tomcat>/<maybe
something here>/log/myLogFile.log?
Any help would be greatly appreciated.
Thanks,
jPolanik@cds.duke.edu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>