Using DLF for a PHP package

XNOGUER at telefonica.net XNOGUER at telefonica.net
Wed Jul 30 23:04:08 CEST 2003


 Hi,

 Me and a couple of other developers are currently working on a PEAR
package for parsing different kinds of logs
(http://pear.php.net/Log_Parser), and I just stumbled upon the Lire site
recently.

 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 :)
 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?

 It would be really great if you could help me out with these questions,
and it would be a real shame to end up creating yet another log format
XML dialect, when there already is DLF.

 Thanks for your time.


  Xavier

PS: Please answer to my address, I'm not subscribed to this list.

-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
development-request at logreport.org



More information about the Development mailing list