Log4J can do appends in a database, so just log to a database
and a file.  The contribs have a JdbcAppender. You might want to
check on the AsyncAppender to avoid having the logging calls
being executed while the user waits for the request and to delay the
performance hit of the insert (logging call).

So your jsp can query a table, very easy.

Daniel

>Hi,
>I need to change my webapp to log the number of hits certain
>actions get and from which session etc etc. Can anyone point me towards
>the "right" way to look at doing this. Ideally I would use Log4J or >something
>similar, but I'm a bit worried about having to parse lots
>of large text files every time my boss wants a gander (especially if he
>insists on having it done as a jsp page).

>I know this isn't strictly struts related, but any stabs at how other people
>have done *in their struts app* appreciated,

>Caoilte


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to