You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2003/08/23 05:57:57 UTC

cleaning up the logging interface

Currently we have quite a mess with various ways one can do logging in mp2. 
This thread started to tackle this issue, but we really have to decide what we 
support and what not and cut the unwanted methods early.
http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=102456650614151&w=2

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cleaning up the logging interface

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> 
> 
> Stas Bekman wrote:
> 
>> Currently we have quite a mess with various ways one can do logging in 
>> mp2. This thread started to tackle this issue, but we really have to 
>> decide what we support and what not and cut the unwanted methods early.
>> http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=102456650614151&w=2
> 
> 
> let's just follow the apache api here.  so you have what, $r->log_error, 
> $r->log->warn|error|etc and $r->server->log variants, right?  

Apache::Log has an incomplete, but pretty good manpage. It covers all the 
available methods:
http://perl.apache.org/docs/2.0/api/Apache/Log.html

> I don't know that Apache->warn adds value when what you really want to enforce 
> is logging through the server object when you don't have a request object.

may be we should go back to the mp1 Changes/cvs logs and see why they were 
added in first place?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cleaning up the logging interface

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Stas Bekman wrote:
> Currently we have quite a mess with various ways one can do logging in 
> mp2. This thread started to tackle this issue, but we really have to 
> decide what we support and what not and cut the unwanted methods early.
> http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=102456650614151&w=2

let's just follow the apache api here.  so you have what, $r->log_error, 
$r->log->warn|error|etc and $r->server->log variants, right?  I don't know 
that Apache->warn adds value when what you really want to enforce is logging 
through the server object when you don't have a request object.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org