Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Logfile-NCSA-Undefined Subroutine?

by shenme (Priest)
on Aug 07, 2003 at 01:53 UTC ( #281682=note: print w/replies, xml ) Need Help??

in reply to Logfile-NCSA-Undefined Subroutine?

Didn't notice your mention of the module version until I verified that 3.00 is the version where that line number made sense. The line number for that line is off by two in version 3.02. Strangely enough the two line difference is the addition of
croak("Could not load my own date parsing: $@") if length($@);
I'd grab the newer by a year version of the module and see if you get different results, though perhaps that might be getting the error message.

(Looking at why code in __DATA__ might fail ... do you have module Time::Local installed on your system?)

Replies are listed 'Best First'.
Re: Re: Logfile-NCSA-Undefined Subroutine?
by WhiteBird (Hermit) on Aug 07, 2003 at 02:18 UTC
    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.

      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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://281682]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-07-03 20:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found