http://qs321.pair.com?node_id=281694


in reply to Re: Logfile-NCSA-Undefined Subroutine?
in thread Logfile-NCSA-Undefined Subroutine?

I may try the version 3.02, just to keep current. In the meantime, I did discover that a subroutine in Logfile::Base requires Time::ParseDate, which was not installed on my system. I'm on a Win 2000 system and the module wasn't available from ActiveState so I downloaded it from CPAN and installed it. While it failed 92 out of 268 subtests, it still works enough to get through the Logfile date parsing.

Now I have an error  "No Index for Host".

Gotta love it. This much trouble for a "simple" 6 line bit of code. Back to debugging.

Replies are listed 'Best First'.
Re: Re: Re: Logfile-NCSA-Undefined Subroutine?
by shenme (Priest) on Aug 07, 2003 at 04:36 UTC
    Yes, it was looking for any one of several different time modules, including Time::ParseDate, then using its own subroutine, which _still_ required Time::Local.

    I have not been able to get anything other than

    $log->report(Group => 'thing', ... );
    to work, where 'thing' is _one_ of the names mentioned in the new( Group => ). The module seems to handle only one key at a time.   It is more painful than I thought it would be....
      Painful is right. I'm not sure the effort is worth the result--the jury is still out on that one. It does appear that you can have more than one thing in Group

      Group => [Host,File,Hour]; as long as you have a report type declared for each item as such:

      $log->report(Group => File, Sort => Records); $log->report(Group => Host, Sort => Bytes); $log->report(Group => Hour, List => [Bytes, Records];

      For some reason, I didn't find the documentation to be entirely clear about that point.