I just looked at Tomcat setup a little bit. I seems startup.bat just calls catalina.bat. So go into catlina.bat and add the following (near the top):
CATALINA_OPTS=%CATALINA_OPTS% -D log4j.debug=true ----- Original Message ----- From: "Ronnie" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Saturday, March 01, 2003 3:49 AM Subject: Re: Really Newbie Problem > I'm using Log4J 1.1.3... > I tried using "startup -D log4j.debug=true" and the Dos Console window pops > up for a split second before disappearing. > Happens on my desktop as well. Is that the right way to execute the command? > > I've tried changing "category" to "logger" as suggested but encountered the > same problem. > > I've really hit a solid stonewall this time... > > Thanks alot for your suggestions Mr Ebersole! I really appreciate it! > > > Regards, > Ronnie > > ----- Original Message ----- > From: "Ebersole, Steven" <[EMAIL PROTECTED]> > To: "'Log4J Users List'" <[EMAIL PROTECTED]> > Sent: Saturday, 01 March, 2003 2:09 AM > Subject: RE: Really Newbie Problem > > > > What version of log4j are you using? Cannot remember the switch-over > > version, but the newer versions of log4j don't use category anymore; its > now > > logger. > > > > Just for giggles, try the following: > > 1) First set the system property log4j.debug to true when starting tomcat > > (pass "-D log4j.debug=true" in the tomcat startup script). Then you can > > watch log4j configure itself; and more importantly if it is running into > > problems... > > > > 2) Try changing the word category in your config file to logger: > > > > log4j.rootLogger=WARN,FILE,A1 > > log4j.logger.edu.rmit.isys2049.EmployeeAccessBean=DEBUG > > > > log4j.appender.FILE=org.apache.log4j.FileAppender > > log4j.appender.FILE.File=C:/temp/tomcat.log > > log4j.appender.FILE.layout=org.apache.log4j.PatternLayout > > log4j.appender.FILE.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n > > > > log4j.appender.A1=org.apache.log4j.FileAppender > > log4j.appender.A1.File=d:/temp/trace.log > > log4j.appender.A1.layout=org.apache.log4j.PatternLayout > > log4j.appender.A1.layout.ConversionPattern=%d [%t ] %-5p %c{1}-%m%n > > > > > > > > |-----Original Message----- > > |From: Ronnie [mailto:[EMAIL PROTECTED] > > |Sent: Friday, February 28, 2003 11:55 AM > > |To: Log4J Users List > > |Subject: Re: Really Newbie Problem > > | > > | > > |No question is silly for a newbie! =) > > | > > |Yes I did restart Tomcat after changing the file location. > > |I'm using log4j.properties so doesn't that configure the logging? > > | > > |I just tried another exercise using EJB in JBoss and JBoss > > |was unable to > > |initialize the default ConsoleAppender as well... > > |Headache... > > | > > |----- Original Message ----- > > |From: "Steve Ebersole" <[EMAIL PROTECTED]> > > |To: "Log4J Users List" <[EMAIL PROTECTED]> > > |Sent: Friday, 28 February, 2003 9:41 PM > > |Subject: Re: Really Newbie Problem > > | > > | > > |> Silly question, but did you restart Tomcat after > > |changing the file > > |location? > > |> > > |> Also, are you allowing default initilization to happen, > > |or are you > > |> explicitly trying to use one of the configurators? > > |> > > |> > > |> ----- Original Message ----- > > |> From: "Ronnie Choo" <[EMAIL PROTECTED]> > > |> To: "Log4J Users List" <[EMAIL PROTECTED]> > > |> Sent: Friday, February 28, 2003 12:43 AM > > |> Subject: Re: Really Newbie Problem > > |> > > |> > > |> > I just tried putting it in the > > |> > webapps/<appname>/WEB-INF/classes folder but still the > > |> > same error. > > |> > > > |> > Thanks for the suggestion! > > |> > > > |> > --- Scott Schram <[EMAIL PROTECTED]> wrote: > At 12:36 > > |> > AM 2/28/2003, you wrote: > > |> > > >I placed it in the {catalina-home}/common/lib > > |> > > folder. > > |> > > > > > |> > > >it works on my desktop though... > > |> > > >Maybe it's an issue with Win XP with SP1? > > |> > > >I'm at my wits end... > > |> > > > > |> > > Shouldn't it be in the WEB-INF/classes directory of > > |> > > your web app? That's > > |> > > where I'm putting log4j.xml > > |> > > > > |> > > > > |> > > > > |> > > > > |> > > > |----------------------------------------------------------- > > |---------- > > |> > > To unsubscribe, e-mail: > > |> > > [EMAIL PROTECTED] > > |> > > For additional commands, e-mail: > > |> > > [EMAIL PROTECTED] > > |> > > > > |> > > > |> > __________________________________________________ > > |> > Do You Yahoo!? > > |> > Promote your business from just $5 a month! > > |> > http://sg.biztools.yahoo.com > > |> > > > |> > > > |----------------------------------------------------------- > > |---------- > > |> > To unsubscribe, e-mail: > > |[EMAIL PROTECTED] > > |> > For additional commands, e-mail: > > |[EMAIL PROTECTED] > > |> > > > |> > > |> > > |> > > |----------------------------------------------------------- > > |---------- > > |> To unsubscribe, e-mail: [EMAIL PROTECTED] > > |> For additional commands, e-mail: > > |[EMAIL PROTECTED] > > | > > |__________________________________________________ > > |Do You Yahoo!? > > |Promote your business from just $5 a month! > > |http://sg.biztools.yahoo.com > > | > > |----------------------------------------------------------- > > |---------- > > |To unsubscribe, e-mail: [EMAIL PROTECTED] > > |For additional commands, e-mail: [EMAIL PROTECTED] > > | > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > __________________________________________________ > Do You Yahoo!? > Promote your business from just $5 a month! > http://sg.biztools.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]