You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Deepak Mehta <de...@deeeep.com> on 2004/06/02 09:27:55 UTC
Re: Logging all HTTP Requests to a database
Wouldn't it be easier to put an apache in front of the app and then use
an existing mod_ for logging all the http requests to the database...
this works quite nicely, but is not a monolithic solution.
Ciao
Deeeep
On Apr 06, 2004, at 17:51, Geoff Howard wrote:
> Surjan Singh wrote:
>
>> Geoff Howard wrote:
>>> Steve Krulewitz wrote:
>>>
>>> > Surjan Singh wrote:
>>> >
>>> >> I already have a Component that can be called in an action which
>>> logs
>>> >> request details asynchronously to a database. What I'd like to
>>> do, is
>>> >> to somehow use the same Component to log _all_ requests.
>>> >
>>> >
>>> > I'm not sure if this is the answer you're looking for, but maybe
>>> you
>>> > should be doing this in a servlet filter? It will be able to
>>> intercept
>>> > all HTTP requests.
>>>
>>> Couldn't you do this by just adding a new jdbc log target in
>>> logkit.xconf?
>>>
>>> http://wiki.cocoondev.org/Wiki.jsp?page=ConfiguringTheLogs
>
> ...
>
>> I could, but we want the data in a db table. (We already have
>> Component that does this for us, I want to use it from CocoonServlet,
>> similar).
>
> ? The jdbc log target puts the data in a db table. If you've read
> the page referenced above and it doesn't meet your needs, explain how.
>
> Geoff
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
--
Deepak Mehta **** Zonnebloem Europa bvba ****
Fruithoflaan 124/34, 2600 Berchem
E-mail: deepak@zonnebloemeuropa.be
Tel: +32475612620
PGP Fingerprint: 837E B8E6 6AF4 6675 2730 0848 7731 09F5 3445 00A5
Re: Logging all HTTP Requests to a database
Posted by Ralph Goers <Ra...@dslextreme.com>.
2.1.5 provides a RequestListener interface. If you implement it and define
it in cocoon.xconf you can have access to the beginning and end of every
request.
Deepak Mehta said:
> Wouldn't it be easier to put an apache in front of the app and then use
> an existing mod_ for logging all the http requests to the database...
> this works quite nicely, but is not a monolithic solution.
>
> Ciao
> Deeeep
>
> On Apr 06, 2004, at 17:51, Geoff Howard wrote:
>
>> Surjan Singh wrote:
>>
>>> Geoff Howard wrote:
>>>> Steve Krulewitz wrote:
>>>>
>>>> > Surjan Singh wrote:
>>>> >
>>>> >> I already have a Component that can be called in an action which
>>>> logs
>>>> >> request details asynchronously to a database. What I'd like to
>>>> do, is
>>>> >> to somehow use the same Component to log _all_ requests.
>>>> >
>>>> >
>>>> > I'm not sure if this is the answer you're looking for, but maybe
>>>> you
>>>> > should be doing this in a servlet filter? It will be able to
>>>> intercept
>>>> > all HTTP requests.
>>>>
>>>> Couldn't you do this by just adding a new jdbc log target in
>>>> logkit.xconf?
>>>>
>>>> http://wiki.cocoondev.org/Wiki.jsp?page=ConfiguringTheLogs
>>
>> ...
>>
>>> I could, but we want the data in a db table. (We already have
>>> Component that does this for us, I want to use it from CocoonServlet,
>>> similar).
>>
>> ? The jdbc log target puts the data in a db table. If you've read
>> the page referenced above and it doesn't meet your needs, explain how.
>>
>> Geoff
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
> --
> Deepak Mehta **** Zonnebloem Europa bvba ****
> Fruithoflaan 124/34, 2600 Berchem
> E-mail: deepak@zonnebloemeuropa.be
> Tel: +32475612620
>
> PGP Fingerprint: 837E B8E6 6AF4 6675 2730 0848 7731 09F5 3445 00A5
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org