Re: New project: Log-parser
| From: | Matthew Palmer | Date: | Mon, 12 May 2003 09:51:57 +0000 |
| Subject: | Re: New project: Log-parser | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16179@lists.php.net to get a copy of this message | ||
On Mon, 12 May 2003, Tobias Schlitt wrote:
> We yesterday talked about the basic-approach we'll try to follow. The sense
> was that it would be stupid to write 1 class for each logtype. Our new idea
> is to provide some XML-format to define how a log looks like and let it
> parse after theese patterns. So everyone should be able to parse any kind of
> log. We'll then give XML-sheets for the wished logs to the package and
> everyone can contribute XMLs for any log-type.
>
> What you all think of that?
While writing a class for each type of logfile would be a fair chunk of
work, it would make the classes fairly maintainable. I've seen waaaay too
many XML parsers with infinite hair, and I don't know whether writing an XML
spec would be any easier than writing the class (especially if the base
class is properly formulated).
I think my old-fashioned ways are really showing.
--
-----------------------------------------------------------------------
#include <disclaimer.h>
Matthew Palmer, Geek In Residence
http://ieee.uow.edu.au/~mjp16