On 8 June 2012 10:14, Florian Semm <florian.s...@gmx.de> wrote: > Hey, > > some weeks ago Michael Sole talk about a new/more intuitive way for the > logger-configuration. I talk with some colleagues and they have the same > opinion: large associated arrays are bad.
Hm, just noticed that conversation. Missed it somehow. > My idea is to use objects for the configuration. There are for each > component (layout, appender) concrete configuration-classes. > > https://gist.github.com/2894414 > > What do you think? I'm not outright against such a thing, but I'm not sure why it's useful. Why not just configure log4php programatically: http://logging.apache.org/log4php/docs/configuration.html#Programmatic_configuration The code even looks similar to your gist. :) Configuration objects would add another abstraction layer, and I'm not convinced what the benefits would be. Regards, Ivan