[Opensource] Controller.getLogger()
larry hamel
expresso at codeguild.com
Thu Oct 31 13:28:40 PST 2002
Expresso has a lot of duplicated code for creating loggers (log4j Category's) for each controller.
Now there is a simple superclass method in Controller.java, getLogger(), which will create a logger with the name of the subclass on demand. So instead of duplicating setupLog() code in each and every Controller you write, just do logging like
getLogger().error("blah");
getLogger().debug("blah");
which will create a logger the first time and reuse it thereafter.
larry
p.s. Mike, I added a 5.1 release tag to the changelog; let me know if this was inappropriate
More information about the Opensource
mailing list