Re: [RFC] Implement a LoggerInterface to PHP

From: Date: Thu, 08 Nov 2012 13:20:03 +0000
Subject: Re: [RFC] Implement a LoggerInterface to PHP
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-63779@lists.php.net to get a copy of this message
Florin, On Thu, Nov 8, 2012 at 6:42 AM, Florin Razvan Patan <florinpatan@gmail.com>wrote: > Hello, > > > After a talk on the Symfony framework here: > https://github.com/symfony/symfony/issues/5911 > Long story short, the point that @Seldaek suggestion to have a common > interface for loggers > actually makes sense and the best way to have it would be to have PHP > include it by default. > > I'm not sure exactly what amount of work this implies, nor my C skills > are existent, but with > PHP having such an interface available it would help standardize > things in the PHP world. > > Also, I'm not sure if this could be backported into existing PHP 5.3 > or PHP 5.4 versions > but this would make sense to consider it for PHP 5.5. > > What do you guys think? Could this be considered to be included in PHP? > > Thank you for your time. > > > > > Best regards, > Florin > Pedantically speaking, isn't this the exact goal of the FIG/PSR group? That they define these common parts? Is there an advantage to having it in C (performance, etc)? If so, there may be something to discuss. But if it's just to enforce a common paradigm, I'd say leave that to the community to do. They are in a better position and can change their mind if they need to. Something that core is reasonably positioned to not do... Anthony

« previous php.internals (#63779) next »