You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Sullivan, Mark E" <Ma...@nav-international.com> on 2002/08/25 19:29:38 UTC
RE: logging to file
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:gpayet@oceangroup.com]
> Sent: Sunday, August 25, 2002 12:31 PM
> To: tomcat-user@jakarta.apache.org
> 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: gpayet@oceangroup.com
> http://www.oceangroup.com
> http://www.localharvest.org
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>