perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <>
Subject Re: Apache::LogSTDERR
Date Sun, 18 Feb 2001 23:03:30 GMT
On Sun, 18 Feb 2001, Matt Sergeant wrote:
> While both work, they still suffer from all the extraneous info that
> 1.3+ logging outputs: "[Date] [leve]", or for info: "[Date] [level]
> [ip]". Rather annoying.

right.  the code that redirects stderr to the r->server->error_log lives
in mod_perl.c:

#ifndef PERL_TRACE

i wonder if you have PERL_TRACE on?  or it isn't being called for some
reason, or being called to early before r->server points to the
virtualhost thats serving the request.
changing to this might shed some light:

    if(r->server->error_log) {
        fprintf(stderr, "hooking stderr to %s for host %s\n",
                r->server->error_fname, ap_get_server_name(r));

View raw message