All files from this thread

File Name File Size   Posted by Date  
patch.any_status 8.5 KB open | download Igor Sysoev 04/10/2009 Read message
April 09, 2009 01:16AM
On Wed, Apr 08, 2009 at 11:41:43PM -0400, davidc wrote:

> I'm testing the embedded perl module. Is it possible to log the return value?
>
> i.e. can I set $return to capture the return value of the handler in this example?
>
> log_format main 'Return value is $return';
>
> access_log /path/to/access.log main;
>
> server {
> location / {
> perl Module::handler;
> }
> }

The return value become a value of the $status variable.


--
Игорь Сысоев
http://sysoev.ru

Subject Author Posted

Logging embedded Perl return value

davidc April 08, 2009 11:41PM

Re: Logging embedded Perl return value

Igor Sysoev April 09, 2009 01:16AM

Re: Logging embedded Perl return value

davidc April 09, 2009 04:54AM

Re: Logging embedded Perl return value Attachments

Igor Sysoev April 10, 2009 06:33AM

Re: Logging embedded Perl return value

davidc July 07, 2009 05:59AM

Re: Logging embedded Perl return value

davidc July 07, 2009 11:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready