Guys, I reviewed LoggerManager, Logger and LoggerHierarchy cause the constellation of the classes are very confusing. Following a hint from christian Hammers, I read: http://logging.apache.org/log4j/1.2/manual.html
While Log4PHP is always speaking of LoggerManager::getLogger, Log4J says: Logger.getLogger. There is actually a LogManager class available in Log4J, but I couldn find any reference from the documentation to it. I guess it's the preferred way to use Logger.getLogger(). In Log4php you can currently use Logger class to retrieve a logger. Is redirecting this request to the loggerManager, which returns the LoggerHierarchy which returns the actual logger. You can also use the LoggerManager directly to retrieve a Logger. This is confusing. What should one use? Why two ways? I hardly see a benefit in having the LoggerManager class. Its just defining the classloader and references to the LoggerHierarchy. I would like to remove the LoggerManager class since Log4PHP 2.0 isn't meant to be backward compatible. Instead, Logger should do the stuff. Are there any reasons not to do so from your point of view? Thanks, Christian
