Re: Log::XML - Request for Comments, preparing the package for a vote

From: Date: Thu, 25 Jun 2009 04:49:01 +0000
Subject: Re: Log::XML - Request for Comments, preparing the package for a vote
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-52054@lists.php.net to get a copy of this message
Hi Michael, > got my first big time coding job). One of the things I wanted to > support was real-time viewing of the log as it is being generated. That'd be a big plus. > I was looking at log4j recently and in XML mode it will have > the header in one file and the individual log events in another file, > referenced via an external entities tag. Do you think this would be > the best way to go? Log4j is the defacto standard for logging with java, and there have many thoughts been put into its development. It's safe to follow that route :) > As far as XML libraries I'll look at XMLWritier and see if I could > factor out all library calls so that the library could be easily > changed to any arbitrary library. You cannot factor out everything - that does not work. What would work is making the base log class agnostic to any api by defining your own, and make a base plugin class that implements it for xmlwriter or dom. > So to summarize thank you for the good points. What do you think of > keeping the header and log statements in separate files and linking > them with an XML external entities reference? Lastly what do you > think of factoring out XML library calls? +1 :) -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.dev (#52054) next »