Re: [REMEMBER] Package proposal: PEAR_logparser.

From: Date: Thu, 15 May 2003 19:08:26 +0000
Subject: Re: [REMEMBER] Package proposal: PEAR_logparser.
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16320@lists.php.net to get a copy of this message
<zitiere wer="Alan Knowles"> > I would have expected Log_Parser to work more like: > $parser = new Log_Parser::factory('apache','/var/logs/apache/access.log'); > either a callback type mechainsm.. > $parser->connect(array(&$myobject,'callbackLineRead')); > or it to return a structured array... > I'm not quite sure what the config stuff is about, - are you intending > to use xml to store the logic about the file formats ? - wddx may be > simpler (or just using pear's config class), hence not requiring > creating another xml format and writing yeat another xml parser etc.. The problem is, that we'd like to be as flexible as possible and as easy as possible. The XML-format (wich is quiet very easy to write) is ideal fordescribing the logformat. So, someone can write the structure of a logfile into xml and share it with others. We had a look at other configuration-models (ini, etc.) before we decided for making a new one. Just wait for our first test-release and you'll se, how great it works! ;) -- <?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2*5,4*29,111,98,105, 97,115,64,115,99,104,108,105,4*29,4*29,2*23,105,11*10,2*51,111);'); function f($a){print eval('eval($a);while(list(,$b)=each($a))echo chr($b);');} ?>

« previous php.pear.dev (#16320) next »