Re: log4j:WARN No appenders could be found for logger

2006-03-14 Thread red phoenix
How to "Added -Dlog4j.debug to the command line"? Would you give me an example? On 3/14/06, James Stauffer <[EMAIL PROTECTED]> wrote: > > Verify that it is configured before you attempt to use a Logger. > Added -Dlog4j.debug to the command line to give you more info. &g

log4j:WARN No appenders could be found for logger

2006-03-14 Thread red phoenix
I have some file like follows: C:\tomcat5\webapps\ROOT\WEB-INF\web.xml C:\tomcat5\webapps\ROOT\WEB-INF\conf\log4j.properties C:\tomcat5\webapps\ROOT\WEB-INF\classes\test\LogServlet.class C:\tomcat5\webapps\ROOT\WEB-INF\classes\abc\test.class and I use servlet to initial log4j,like follows: /*LogS

How to get Log4j configure file under Tomcat?

2006-03-13 Thread red phoenix
I have a ordinary Java class,not a servlet class,it locates the directory of tomcat\webapps\test\WEB-INF\classes\test\testing.class,it will read a configure file,the configure file locates tomcat\webapps\test\WEB-INF\conf\test.configure. My question is how to get real path of configure file,because