Re: [mp2] Documentation/LogHandler question

2002-12-05 Thread David Wheeler
On Wednesday, December 4, 2002, at 06:14  PM, Stas Bekman wrote:


Think of 2.0 as 1.0 on mushrooms.


I need to give some thought as to how I can include quote gems like 
this in my sig. For now, though, I'll leave it to Schwern.

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]



Re: [mp2] Documentation/LogHandler question

2002-12-05 Thread Geoffrey Young


Hsiao, Chang-Ping wrote:

p.s. Geoff, we need a short acronym for your book so it's 
easy to refer 
to it, (a new eagle), I've called it R&W (Red&White), if you have a 
better idea, please suggest.


	Right, an animal is much easier to remember.  Wish it had one on its
cover like books from O'reilly.


well, not everyone can write for O'Reilly :)

the cookbook is probably as good a nickname as any.  other 
possibilities that have been floated around have been "the brick book" 
(in reference to the cover color) as well as "the cool book" (if you 
look at the back cover closely, it says "cool" on it - the end of the 
"k" is cut off by the binding :)

anyway, I usually just say the cookbook.  thanks for the reference in 
any case :)

--Geoff





RE: [mp2] Documentation/LogHandler question

2002-12-04 Thread Hsiao, Chang-Ping
> p.s. Geoff, we need a short acronym for your book so it's 
> easy to refer 
> to it, (a new eagle), I've called it R&W (Red&White), if you have a 
> better idea, please suggest.

Right, an animal is much easier to remember.  Wish it had one on its
cover like books from O'reilly.


.



Re: [mp2] Documentation/LogHandler question

2002-12-04 Thread Stas Bekman
Beau E. Cox wrote:

Hi -

In: http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler,
the PerlLogHandler documentation, the configuration file sample setup is
given as:


  SetHandler perl-script
  PerlResponseHandler ModPerl::Registry
  PerlLogHandler MyApache::LogPerUser
  Options +ExecCGI


Now I wrote a simple log handler and had no end of problems (will detail
upon request) with this configuration. 

Please do so.


Since I want to intercept
_every_ access to my server, I ended up with:


  PerlLogHandler MyApache::Logger


and then shortened it to:

PerlLogHandler MyApache::Logger

where MyApache::Logger is the name of my logging perl script. I works
perfectly.

Do you really need all the other 'stuff'? Since this is a log handler
why would you need the ResponseHandler, etc.?


Of course you don't need it. I've added it so the example will be 
complete (i.e. you need some kind of response handler, or I guess you 
could rely on the default handler)

As you have gathered, this is my very first mod_perl handler :)


You probably want to get hold of the eagle and the R&W mod_perl books. 
Though covering mod_perl 1.0, most of the information you learn applies 
to 2.0 as well. Think of 2.0 as 1.0 on mushrooms. For the books info 
see: http://perl.apache.org/docs/offsite/books.html#Learn_mod_perl

PS: Hey Mr. 100%, mod_perl 2.0 rocks!


;)

p.s. Geoff, we need a short acronym for your book so it's easy to refer 
to it, (a new eagle), I've called it R&W (Red&White), if you have a 
better idea, please suggest.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com