On Thu, Jul 26, 2007 at 09:11:58AM -0400, Xicheng Jia wrote:
> On 7/25/07, Brian Reichert <[EMAIL PROTECTED]> wrote:
> > I feel really stupid asking this sort of question, but:
> >
> > How do I get HTML::Mason to send warn() output to Apache's error logs?
> >
> > I have 'PerlWarn On' in my global httpd.conf; I thought that would
> > have cut it.
> 
> What is the version of your mod_perl? if it's mod_perl 2, you need
> 'PerlSwitches -w' instead of 'PerlWarn On' to turn on the 'warnings'.

Thank you for pointing out the distinction; that slipped by me.

I also now have to mention something else that blind-sided me:

I'm developing a webapp with an https interface, hence mod_ssl is
in play.  The stock mod_ssl config file has this:

   # Use separate log files for the SSL virtual host; note that LogLevel
   # is not inherited from httpd.conf.
   ErrorLog logs/ssl_error_log
   TransferLog logs/ssl_access_log
   LogLevel warn

I had assumed that my perl warning would end up in these logs.
Silly me!  They've been appearing in the regular (http) error log
all along...

Thanks for your patience...

> Regards,
> Xicheng
-- 
Brian Reichert                          <[EMAIL PROTECTED]>
55 Crystal Ave. #286                    Daytime number: (603) 434-6842
Derry NH 03038-1725 USA                 BSD admin/developer at large    

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to