Eddie gave you one. I'll attach an example that Chuck used in his Beer4All demo.
Just put it in WEB-INF/classes/ James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein (1879-1955) > -----Original Message----- > From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com] > Sent: Tuesday, October 22, 2002 11:02 AM > To: Struts Users Mailing List > Subject: RE: [Logging] How to make the darn logs work again? > > > Nope. I dont have a log4j.properties > > At this point methinks me shall go home (11pm) before me throws > me computer > out the window in a fit of anger at having to learn how to set up > (re-install?) yet another technology (log4j) while me is in the middle of > trying to learn digester (which is pretty cool btw!). > > Ill try and chase up a property file in the morning - but where > should this > file have come from in the first place so I know where to get it from? > > -----Original Message----- > From: Eddie Bush [mailto:ekbush@;swbell.net] > Sent: Tuesday, October 22, 2002 22:42 > To: Struts Users Mailing List > Subject: Re: [Logging] How to make the darn logs work again? > > > Andrew Hill wrote: > > >Quite a long time ago my colleagues fiddled with my Tomcat > installation to > >make something work. Dont know what they did, but a side effect > of this was > >they they killed the logging for struts. > > > >Ive been ignoring this for ages (since I tend to use System.out for > >debugging my stuff) > > > shame-shame! <shake-finger target="Andrew 'System.out' Hill" /> > > >however now that Im trying to use Digester I need to be > >able to log stuff again... > > > >I get the following in my console window at startup & again when I try to > >use digester in my plugin class: > ><snip> > >log4j:ERROR No appenders could be found for category > >(org.apache.commons.digester.Digester). > >log4j:ERROR Please initialize the log4j system properly. > ></snip> > > > log4j.rootLogger=DEBUG,A1 > log4j.appender.A1=org.apache.log4j.ConsoleAppender > log4j.appender.A1.layout=org.apache.log4j.PatternLayout > log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n > > Do you have similar lines in your log4j.properties file? (You have this > file, right? ... in WEB-INF/classes/log4j.properties?) > > >I am absolutely clueless in regards to how this logging stuff > works (other > >than that it doesnt) > > > LOL :-) > > >and would appreciate some times on how to initialise it > >"properly" - right now I dont even know how to initialise it improperly > :-(! > > > You don't really have to initialize it. What you DO have to do is have > a configuration file. For tips on using commons-logging in *your* code > see the user guide online. For resolving this, try making sure you have > the above information where I mentioned. > > Hopefully that fixes you up - I hate "broke" Andrews ;-) > > -- > Eddie Bush > > > > > -- > To unsubscribe, e-mail: > <mailto:struts-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:struts-user-help@;jakarta.apache.org> > > > -- > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
log4j.properties
Description: Binary data
-- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

