You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Marcus Crafter <cr...@fztig938.bank.dresdner.net> on 2001/07/13 14:43:38 UTC
[C2 patch] DebugAction.java
Hi All,
Hope all is well.
Attached is a new action for help with debugging and development. It's
called DebugAction. All it does is log everything do with the current
request (request info, parameters, remost host info, session
attributes, etc).
I've found it useful to see what's going on when developing/debugging
large applications. Maybe it's of use for others.
The log output looks like:
DEBUG 11596 [cocoon ] (Thread-15): org.apache.cocoon.acting.DebugAction: DEBUGGING INFORMATION:
REQUEST: /cocoon/debug
CONTEXT PATH: /cocoon
SERVLET PATH: /debug
PATH INFO: null
REMOTE HOST: localhost
REMOTE ADDRESS: 127.0.0.1
REMOTE USER: null
REQUEST SESSION ID: null
REQUEST PREFERRED LOCALE: en
SERVER HOST: localhost
SERVER PORT: 9001
METHOD: GET
CONTENT LENGTH: -1
PROTOCOL: HTTP/1.0
SCHEME: http
AUTH TYPE: null
REQUEST PARAMETERS:
PARAM: 'a' VALUE: 'b'
PARAM: 'c' VALUE: 'd'
SESSION ATTRIBUTES:
Feel free to add whatever details you think might be useful.
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: Open Software Associates GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&' Email : Marcus.Crafter@osa.de
&&&&. Business Hours : +49 69 9757 200
&&&&&&&:
Re: AW: [C2 patch] DebugAction.java
Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
Hi Carsten!
On Tue, 17 Jul 2001, Carsten Ziegeler wrote:
> I just added the code of your valuable actions to the core
> of cocoon and not the action itself. This enables the
> logging for each request without changing the sitemap.
cool. :-)
> I hope you like this approach...
Sure, thanks for your help mate. Much appreciated!
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: Open Software Associates GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&' Email : Marcus.Crafter@osa.de
&&&&. Business Hours : +49 69 9757 200
&&&&&&&:
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
AW: [C2 patch] DebugAction.java
Posted by Carsten Ziegeler <cz...@sundn.de>.
Hi Marcus,
I just added the code of your valuable actions to the core
of cocoon and not the action itself. This enables the
logging for each request without changing the sitemap.
I hope you like this approach...
Thanks for the patch!
Carsten
Open Source Group sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de mailto: cziegeler@sundn.de
================================================================
> -----Ursprungliche Nachricht-----
> Von: Marcus Crafter [mailto:crafterm@fztig938.bank.dresdner.net]
> Gesendet: Freitag, 13. Juli 2001 14:44
> An: Cocoon Developers Mailing List
> Betreff: [C2 patch] DebugAction.java
>
>
> Hi All,
>
> Hope all is well.
>
> Attached is a new action for help with debugging and
> development. It's
> called DebugAction. All it does is log everything do with
> the current
> request (request info, parameters, remost host info, session
> attributes, etc).
>
> I've found it useful to see what's going on when
> developing/debugging
> large applications. Maybe it's of use for others.
>
> The log output looks like:
>
> DEBUG 11596 [cocoon ] (Thread-15):
> org.apache.cocoon.acting.DebugAction: DEBUGGING INFORMATION:
> REQUEST: /cocoon/debug
>
> CONTEXT PATH: /cocoon
> SERVLET PATH: /debug
> PATH INFO: null
>
> REMOTE HOST: localhost
> REMOTE ADDRESS: 127.0.0.1
> REMOTE USER: null
> REQUEST SESSION ID: null
> REQUEST PREFERRED LOCALE: en
> SERVER HOST: localhost
> SERVER PORT: 9001
>
> METHOD: GET
> CONTENT LENGTH: -1
> PROTOCOL: HTTP/1.0
> SCHEME: http
> AUTH TYPE: null
>
> REQUEST PARAMETERS:
>
> PARAM: 'a' VALUE: 'b'
> PARAM: 'c' VALUE: 'd'
>
> SESSION ATTRIBUTES:
>
> Feel free to add whatever details you think might be useful.
>
> Cheers,
>
> Marcus
>
> --
> .....
> ,,$$$$$$$$$, Marcus Crafter
> ;$' '$$$$: Computer Systems Engineer
> $: $$$$: Open Software Associates GmbH
> $ o_)$$$: 82-84 Mainzer Landstrasse
> ;$, _/\ &&:' 60327 Frankfurt Germany
> ' /( &&&
> \_&&&&' Email : Marcus.Crafter@osa.de
> &&&&. Business Hours : +49 69 9757 200
> &&&&&&&:
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org