On 17.02.2011 07:09, Fabien Potencier wrote:
> On 2/17/11 3:23 AM, Jordi Boggiano wrote:
>> Heya,
>>
>> So someone mentioned again earlier that the ZF dependency was annoying,
>> and since I couldn't agree more, I thought it was about time we got rid
>> of it. So I quickly wrote Monolog [1], it's not finished yet but it
>> logs, and I think it has already enough functionality to handle what the
>> ZendBundle does atm.
>>
>> Any objection to removing ZendBundle and adding support for Monolog in
>> FrameworkBundle? I can do the patch somewhen.
> 
> If we were to replace the logging feature of ZendBundle, it would
> probably be better to have a proper Logger Symfony component.

Still sounds better to me to replace 100MB+ of code by 1, even as an
external lib, but we'll see. I don't think I can't really guarantee I'll
have time before SfLive, but I can guarantee I'll try to make a bundle
that replaces ZendBundle, if it doesn't go in core, at least it'll be
there for those with no interest in using ZF.

> At first glance, the code looks good, but it definitely needs a lot of
> work to be able to replace the current Zend logger, feature wise.

In absolute terms yes, but in terms of which features Sf2 uses? Maybe I
missed something, but it looked to me (at least from a peak at the DIC
config) that it's just used to dump lines to a file - which Monolog does
just fine right now.

>> Also if you just want to look at the code and complain about this or
>> that, be my guest :)
> 
> I had a quick look, and everything looks good for now. As always, there
> is a Python library I really like, and you can probably have a look at
> it for some inspiration: http://packages.python.org/Logbook/index.html

Thanks, I'll have a look. Kind of wondering if you have an evil twin
that codes in python while you sleep though.

> Another possibility is to find a way
> to just get the Zend Logger part of ZF and host it somewhere to avoid
> getting the whole ZF repo. Should be much easier than rewriting a new
> library.

Could make sense, but that's no fun at all! :)

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to