On Thu, 13 Jan 2000, Jim Sander wrote:

>    As always, this has been a BIG help. So, let me try to put my foot in
> it again. (yes, I'm a glutton for punishment) If I can manage to at least
> not say something false, I'll feel redeemed.
> 
>    1. Analog essentially maintains a list of logfiles it expects to see,
>       and for each of these it keeps a list of formats it might use. This
>       allows multiple files/formats to be processed with a minimum of
>       (relatively slow) string processing to determine the format.
> 
>    2. When you add a logfile its format list will contain the "current"
>       list of formats- which is usally ALL previous declarations of
>       LOGFORMAT, plus the default. (I assume there is a way to remove
>       formats from the current list- but it escapes me right now)
> 
>    3. If analog encounters a logfile not in its list, it uses the default 
>       format. If it encounters a logfile that it doesn't think is in the
>       "right" format the file is skipped.
> 
>    4. If you try to add a logformat without a logfile it complains
>       (LOGFORMAT specified without LOGFILE)
> 
>    5. The default format happens to be "examine and guess" - but it can be
>       overridden with DEFAULTLOGFORMAT. (maybe?)
> 

Close. 1, 4 & 5 are correct, but 2 & 3 aren't.

2 is the mistake Jeremy made too. The "current" list of formats is not all
previous LOGFORMATs plus default. It's only those LOGFORMATs declared
since the last LOGFILE command. Or if no formats have been declared since
the last LOGFILE command, it's the same list as the last logfile had. This
is much better explained by example, though, and there are examples in
docs/logfmt.html.

3 is wrong because there are no logfiles not in the list. The list of
logfiles is exactly those which you have explicitly specified, either with a
LOGFILE command or on the command line. If it encounters a logfile with no
previous LOGFORMAT command, then it uses the default format, as in 5.

Also, logfiles not in the right format aren't skipped. It's logfile _lines_ 
in the wrong format which are skipped. Unless the format is "examine and
guess" and it can't guess, every line of every logfile is read.

-- 
Stephen Turner    [EMAIL PROTECTED]    http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
  "Children from St Lawrence's School have buried a time capsule to mark both
   the millennium and National Tree Week." Cambridge Town Crier, 16/12/99

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to