Re: [REMEMBER] Package proposal: PEAR_logparser.
| From: | Alan Knowles | Date: | Thu, 15 May 2003 15:44:47 +0000 |
| Subject: | Re: [REMEMBER] Package proposal: PEAR_logparser. | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16305@lists.php.net to get a copy of this message | ||
I see what you mean about the factory method. on it, loading a data description file for each time is more suitable..
It's worth reading up on this - it's basically a standard xml format for storing data - it's not much different from what you would end up if you designed your own schema. but the libraries are easier to use (as in built in), and you could use the data on other applications = eg. .Net/perl/python/java whatever, without the need to write parsers all the time. It's one of those smart idea's that has not got as much attention as it deserves (as apposed to xml which has far too much attention that it doesnt deserve :) Regards Alan- wddx may be simplerI don't think that many people are familiar with wddx, the idea is to make adding new log formats as easy as possible, even defining customized logs that will never be a part of the package.
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com(or just using pear's config class), hence not requiring creating another xml format and writing yeat another xml parser etc..We should take a look at that. Thanks for the hint.Tobias Schlitt wrote:Am Thursday, May 15, 2003 12:13 PM [GMT+0100=CET], artikulierte Alan Knowles <alan@akbkhome.com>:Now (since i added the configuration-line to httpd.conf) a can do so: Here it is. The Main Class-File: http://www.php-applications.de/logparser/Log_Parser.phps The Main Configurator-Class: http://www.php-applications.de/logparser/Log_Parser_Config.phps Configuration-Sub-Class: http://www.php-applications.de/logparser/Log_Parser_Config_Namespace.phps And a Testing-File: http://www.php-applications.de/logparser/test.phps Some additional info: The API is not yet fixed. We have to discuss about the filter-API and the iterator. Another point wich has next to be done are more test-configs for other log-types. So, be patient about what is done until now, the packages is at it's beginning right now... Hope for some +1 now, so that Pierre won't kill me (wich would actual bring nicos to run amok... LOL). Have a nice weekend guys! Regards, Toby <?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);');} ?>can you do phps's or just php -r 'highlight_file("./whatever.php");' > source.html