Re: customlog logformat spec

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 21 Mar 2002 11:01:46 +0100

On Thursday 21 March 2002 09:15, Chemolli Francesco (USI) wrote:

> > %#tu
> >
> > Ths should also be considerably easier to parse..
>
> Not really, since my current parser looks for prefixes to decide
> what to do. It may very well be a very suboptimal parser, I didn't
> think much about design (if I did at all).

Look for a %.

If found, look for a field width and related flags such as
justification.

Then look for the tag prefix. Each tag can then use the field width
if wanted, no need to parse it individually.

Regards
Henrik
Received on Thu Mar 21 2002 - 03:02:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:52 MST