I haven't figured this one out yet. Chris, thanks for the help.
I have moved on and tried getting Log::Dispatch::Scribe working. We
are a red hat shop, so I am in the middle of converting all the
dependent CPAN modules into RPMs.
My main interest in using Log::Dispatch::Scribe, is it comes with
scribe_cat.pl, which allows you to do the bad ass Apache Custom Log
pipes.
CustomLog "|
scribe_cat.pl --category=www" "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-agent}i\""
I was never able to get my modified scribe_cat script to correctly
read from an Apache pipe. I was using the readline() function, and it
wouldn't keep with the log flow. The read() function would just hang.
Apparently Perl is better at this for some reason.
I dug into Silas's scribe_log. He suggests using supervisor to
restart the process if it ever dies, which is cool as hell. We use
puppet though, and supervisor is a little hard to manage via puppet. I
have to use some funky puppet functions to add and remove the
supervisor program and command lines. I can post this code if anyone
is interested in OO puppet.
Oh, well once I get out of RPM dependency hell, I'd be happy to make
all the Perl work available to the group. Thanks again Chris and
Anthony, have a great weekend.
-Tom
On Nov 12, 10:09 pm, Chris Goffinet <
c...@chrisgoffinet.com> wrote:
> I agree with Anthony, I think this line:
>
> $le->message();
>
> should be:
>
> $le->message = $line;
>