I would and do use log4j within my applications. I would argue that it is not overkill considering that the framework for using it is already exists within Tomcat. However, instead of specifically importing the log4j classes, I use the commons-logging classes because then i can just drop my applications into websphere will no modification. I would assume that other web application servers are similar
> -----Original Message----- > From: Guillermo Payet [mailto:[EMAIL PROTECTED]] > Sent: Sunday, August 25, 2002 12:31 PM > To: [EMAIL PROTECTED] > Subject: logging to file > > > > Hi, > > I'd like to keep certain application logs as text files. Things like > "search parameters used in a search form", or logs of "what users > logged in or out and when". > > I'm wondering what's the simplest, most elegant, best performance way > to do this. I was thinking about using Log4j for this, but it seems > like overkill. Should I just create static PrintWriter(FileWriter), > objects, and have my JSP pages and servlets write to those? > Will this > serialize writes effectively? Is there a better way?? Any ideas? > > thanks > > --G > > > -- > Guillermo Payet > O C E A N G R O U P > email: [EMAIL PROTECTED] > http://www.oceangroup.com > http://www.localharvest.org > > -- > 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]>
