For a WAR file you are going to deploy: create a log4j.properties or a log4j.xml file and get it into your warfile under WEB-INF/classes. The actual process of doing this differs if you are using Maven, an IDE deployer (e.g. JDeveloper or WSAD), or Ant to generate and deploy a WAR.
For a webapp running within an IDE, you will need to put the file in a directory in your deployed application's classpath. This is highly specific based on what IDE and plugins you are using, but usually this will be the WEB-INF/classes directory. It could also be placed in an arbitrary directory and the webapp's classpath should then include this arbitrary classpath. If this has nothing to do with a webapp, then it is not even tangentially a Struts issue but you will still want to create a log4j.properties or log4j.xml file and have that on the classpath when executing whatever app you are using. HTH, -ed On 10/30/06, Ping Yu <[EMAIL PROTECTED]> wrote:
People in the list, I have my own log.java, and I would like to make a call to my own log definitions before initialize/using the digester (org.apache.commons.digester.Digester). However, I have no idea how to call my own log first. Any suggestions? Thank you very much! Right now, I am always getting the log4j warning. Ping --------------------------------- Get your email and see which of your friends are online - Right on the new Yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]