On Mon, Jan 2, 2012 at 4:18 PM, Ivan Habunek <[email protected]> wrote:
> Hi Florian,
>
> On 2 January 2012 16:07, Florian Semm <[email protected]> wrote:
>> That's a good point and it isn't much work.
>>
>> Do we need the $_classes array or is a naming-conversion for the classes
>> (PEAR/Zend) an alternative solution?
>
> I'm not a fan of the PEAR naming convention (and neither is Christian).
>
> Anyway, we would rather not change the naming convention at this point
> in time. It's a lot of work and does not contribute much to the code
> base. The long-term plan is to start using namespaces at some time in
> the future. At that point we will re-think the whole naming
> convention.
>
> The problem is that namespaces would make log4php incompatible with
> PHP < 5.3 so this is currently not acceptable because a majority of
> people is still using 5.2 (I blame the hosting firms).

+1
Sad but true.

I just had a random thought. Not sure if it is true because I am not
that hardcore user of git...
but wouldn't it be very easy to maintain two branches of log4php, at
least for a while? One with namespace one without

Cheers


>
> By using namespaces we could rename LoggerLayoutPattern to
> \apache\log4php\layouts\PatternLayout, or something similar. This
> would make everything nicer, and we can write a generic autoload
> method instead of having the classes array.
>
>> btw: happy new year ;)
>
> To you too! :-)
>
> Ivan



-- 
http://www.grobmeier.de
https://www.timeandbill.de

Reply via email to