Re: syslog config file format poll
Bennett Todd <[email protected]> Tue, 11 Sep 2007 17:19:11 +0000
| Newsgroups | gmane.comp.sysutils.loganalysis |
|---|---|
| Message-ID | <[email protected]> |
A suggestion: if you need anything with more complex structure than classic syslog's line-per-entry, fixed-order fields, rather than borrowing a specific implementation's arbitrary format, or rolling up --- and having to fully and correctly implement and DOCUMENT --- some new format of your own, go with a well-documented, well-implemented existing format. I needed to represent some lightly-structured data for a software packaging tool I wrote. I started using lua, then got sold on OGDL. The transition was effortless. I concur with those saying XML is too ugly to be considered. If you find yourself craving its heirarchical and extensible expressiveness, and feel for some reason like the likes of OGDL aren't good enough, consider s-exprs; they're pretty nearly isomorphic to XML but way cleaner and less noisy --- and faster and easier to marshal and unmarshal. Full robust XML parsers ain't cheap. Regardless of what you choose, by taking a route like this you get someone else to handle the syntax documentation, a couple of illustrations and a dictionary suffice to describe your application. And if you decide something else is prettier, with this approach writing translaters to go from one config language to another is easy. -Bennett _______________________________________________ LogAnalysis mailing list [email protected] http://www.loganalysis.org/mailman/listinfo/loganalysis
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFG5s4PHZWg9mCTffwRAjPKAKDK5FnoRtz/esz1jBSh39OmVPZELQCfU+c2 dFbSOu3Yifdc/pciFvzfSkA= =7HUy -----END PGP SIGNATURE-----