You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nihir <hp...@gmail.com> on 2004/11/16 17:07:21 UTC

Cocoon log parameters

Hi all,
Is it possible to see the complete URI (including the query string) in
the cocoon access.log file?

Currently following is the snapshot the configuration in logkit.xconf:
----------------
   <cocoon id="access">
     <filename>${context-root}/WEB-INF/logs/access.log</filename>
     <format type="cocoon">
       %7.7{priority} %{time}   [%{category}] (%{uri})
%{thread}/%{class:short}: %{message}\n%{throwable}
     </format>
     <append>false</append>
   </cocoon>
------------

This is the sample of the log that is recorded in access.log
-------------
DEBUG   (2004-11-15) 12:44.27:352   [access] (/abc/test.pdf)
PoolThread-1/AbstractEnvironment: Reset context to
file:/home/cocoon/cocoon-2.1.5.1/build/webapp/
---------------

We would like to see the query string  also that is being passed. e.g.
the actual request looks like this: /abc/test.pdf?bookid=123.
We don't see the 'bookid=123' in the log right now.

This would really help us in debugging as we can easily identify and
trace the thread belonging to this request.

Any help is greatly appreciated and thanks in advance!

Thanks,
Hiral

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Cocoon log parameters

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Nihir wrote:
> Hi all,
> Is it possible to see the complete URI (including the query string) in
> the cocoon access.log file?
> 
> Currently following is the snapshot the configuration in logkit.xconf:
> ----------------
>    <cocoon id="access">
>      <filename>${context-root}/WEB-INF/logs/access.log</filename>
>      <format type="cocoon">
>        %7.7{priority} %{time}   [%{category}] (%{uri})
> %{thread}/%{class:short}: %{message}\n%{throwable}
>      </format>
>      <append>false</append>
>    </cocoon>
> ------------
> 
> This is the sample of the log that is recorded in access.log
> -------------
> DEBUG   (2004-11-15) 12:44.27:352   [access] (/abc/test.pdf)
> PoolThread-1/AbstractEnvironment: Reset context to
> file:/home/cocoon/cocoon-2.1.5.1/build/webapp/
> ---------------
> 
> We would like to see the query string  also that is being passed. e.g.
> the actual request looks like this: /abc/test.pdf?bookid=123.
> We don't see the 'bookid=123' in the log right now.
> 
> This would really help us in debugging as we can easily identify and
> trace the thread belonging to this request.
> 
> Any help is greatly appreciated and thanks in advance!
core.log logs all request parameters

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org