Using DLF for a PHP package

Francis J. Lacoste flacoste at logreport.org
Thu Aug 14 19:00:00 CEST 2003


On Wed, 2003-07-30 at 17:04, XNOGUER at telefonica.net wrote:
> One of the features we are planning is using XML for defining log
> formats, so it was a pleasant surprise to know that we are not the first
> ones to come up with such an idea :)

Lire XML formats aren't designed for the task you are trying to achieve.

The XML formats you are probably talking about is the Lire DLF Schema
Markup Language. These XML files do not describe a "log format" but a
data schema.

New log formats are implemented in Lire by writing a DLF converter which
takes care of parsing the native log format and giving the data
extracted in the correct schema to the framework.

>  Since we also do not want to reinvent the wheel for our package, we are
> considering the possiblity of using Lire's XML dialect, but we have a
> few doubts concerning the format that I was hoping you could help me
> clear out.
> 
>  One of the objectives for our package is to able to parse any kind of
> custom-made log that a user may have developed (or just be stuck with).
> For this reason the log definition format should be very flexible, and
> I'm not quite sure DLF is flexible enough:
>  - can you define a custom field separator with DLF?
>  - can you define your own field types (giving regexs for them, for
> example)?
>  - can you override DLF's field type definitions?

DLF isn't even a real log format, it is more of a convenient
abstraction.

Kind regards,

Francis J. Lacoste

-- 
Francis J. Lacoste              . .           http://www.logreport.org
/^LogReport$/               . .               flacoste at logreport.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/development/attachments/20030814/788af486/attachment.bin 


More information about the Development mailing list