Logging embedded Perl return value

davidc nginx-forum at nginx.us
Thu Apr 9 07:41:43 MSD 2009


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;
    }
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,933,933#msg-933






More information about the nginx mailing list