Thanks for the suggestions, Scott, but adding a rootCategory echo declaration of rootLogger yields no change. And if I add console to the end of the rootLogger/rootCatefory declaration, it gives me errors:
log4j:ERROR Could not find value for key log4j.appender.console log4j:ERROR Could not instantiate appender named "console". Incidentally, I did have rootLogger set at the end of the file, just had forgotten it in the original post. My bad: log4j.rootLogger=DEBUG, HXDbug, DBLog Just for grins and giggles, I echoed all the logger declarations as category declarations. No change. I've probably just got one of my new classes trying to log to HXA when it isn't really inheriting from it. I'll check that a little more closely. Joel Scott Farquhar suggested > Add the following to your config file: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > # Set root logger level to DEBUG and its only appender to console. > # using both logger & catgory ensures 1.1 & 1.2 compatibility > log4j.rootLogger=DEBUG, console > log4j.rootCategory=DEBUG, console > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Cheers, > Scott > > Joel Rees wrote: > > After re-organizing my web app by moving all my classes down into packages > > and adding some support classes for my controller and view packages, Tomcat > > gives me this on startup: > > > > log4j:WARN No appenders could be found for logger > > (jp.gr.mydomain.mywebapp.controller.HXA). > > log4j:WARN Please initialize the log4j system properly. > > > > The web app is running (at least, to the extent that it used to be), and I > > do get logging from the HXA class. I know I'm pretty dense, but does anyone > > have any suggestions about what Log4j is trying to tell me? > > > > log4j.properties contains this: > > > > log4j.appender.HXDbug=org.apache.log4j.ConsoleAppender > > log4j.appender.HXDbug.layout=org.apache.log4j.PatternLayout > > log4j.appender.HXDbug.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n > > log4j.logger.com.HXDbug=WARN > > > > log4j.appender.DBLog=org.apache.log4j.FileAppender > > log4j.appender.DBLog.File=E:/http/assets_tracker/Logs/AssetsTracker.log > > log4j.appender.DBLog.layout=org.apache.log4j.PatternLayout > > log4j.appender.DBLog.layout.ConversionPattern=%5p [%t] > > (%d{DATE}:%F:%L) - %m%n > > log4j.logger.com.DBLog=WARN > > > > log4j.appender.HXS=org.apache.log4j.ConsoleAppender > > log4j.appender.HXS.layout=org.apache.log4j.PatternLayout > > log4j.appender.HXS.layout.ConversionPattern=%5p [%t] (%F:%L) -HXS- %m%n > > log4j.logger.com.HXS=DEBUG > > > > log4j.appender.HXA=org.apache.log4j.ConsoleAppender > > log4j.appender.HXA.layout=org.apache.log4j.PatternLayout > > log4j.appender.HXA.layout.ConversionPattern=%5p [%t] (%F:%L) -HXA- %m%n > > log4j.logger.com.HXA=DEBUG > > > > (and some more stuff for other classes that looks mostly like the HXA > > declaration). > > > > Joel Rees > > Alps Giken Kansai Systems Develoment > > Suita, Osaka -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>