--- On Wed, 11/5/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: prepend date to log
> To: beginners@perl.org
> Cc: [EMAIL PROTECTED]
> Date: Wednesday, November 5, 2008, 4:11 PM

> open (STDERR, ">>/path/to/debug/log/file");
> what I'm not able to do is to automatically prepend the
> date to every
> entry in the debug log file (obviously without finding
> every print in
> the code....).
> any idea? 


you may don't redirect error messages to an additional file under modperl.
Just use Apache's built method for handling it and get the error output to 
error_log.

my $s = Apache2::ServerUtil->server;
if ( something ) {
        $s->log_error("error items");
        ....
}

Also please ask the modperl related questions to modperl mailing lists:
http://perl.apache.org/maillist/modperl.html


Jeff.



      


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to