Am Sun, 2 Aug 2009 14:32:46 +0200 schrieb Christian Grobmeier <[email protected]>:
> > However, this is actually an important change that everyone should > > be aware of and it should be clear in any examples for log4php 2.0 > > that LoggerManager is deprecated/removed in favor of Logger. These > > are the lines users will have to change in their code when > > upgrading to 2.0. > > Good! Then we agree, I will have this done as next task, except you > want to code it. > > I also think we should create a webpage named "Upgrading to Log4PHP > 2.0" in which we describe that change, as you suggested. As the getLogger() method is probably the only one in LoggerManager that people are commonly using, we could leave a LoggerManager skelett that consists only of this single method. The left over method would call the preferred Logger::getLogger() and additionally prints a deprecation warning. This way old code would run but would tell itself how to fix it. This seems more user friendly that just let them search for a README file. bye, -christian-
