Ok, I got my servlet working with the jsp taglib to output the logs. Many thanks to Muller, sk k for the help. I did see the manual but didn't notice it probably due to my cold medication :) .
But there is another question, in the properties file, there is the statement "log4j.appender.R.File=logtags.log" which creates the file logtags.log which is fine but places the file in the root directory of my harddrive which is c:\ . How do I put it somewhere in my webapp using the configuration file without doing hardcoding the path in the properties file ? Help appreciated. Thomas Muller wrote: >| I'm trying to get my jsp to work with log4j, I need to know how to set >| up the log4j properties file to log to a file. >| Can someone provide a example ? Thanks. > >http://jakarta.apache.org/log4j/docs/manual.html > >-- > >Thomas > > > > >************************************************************************* >Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. >The information supplied in this Commercial Communication should be treated >in confidence. >No liability whatsoever is accepted for any loss or damage >suffered as a result of accessing this message or any attachments. > >________________________________________________________________________ >This email has been scanned for all viruses by the MessageLabs SkyScan >service. For more information on a proactive anti-virus service working >around the clock, around the globe, visit http://www.messagelabs.com >________________________________________________________________________ > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>