[jboss-dev] Weird trace log

David M. Lloyd david.lloyd at redhat.com
Thu Aug 16 10:12:34 EDT 2007


On Thu, 16 Aug 2007 14:51:44 +0200
Adrian <abrock at redhat.com> wrote:

> http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontainer/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/structure/StructureDeployerWrapper.java?revision=63687&view=markup

> 41 :  private Logger log;

Bleah - loggers really ought to be static.  Creating a zillion loggers caused
significant performance problems in vfs one time already.

If you *really* want the logger to map to the instantiating class, just make
the logger field protected, and have the subclass constructor assign their
(static) logger to the protected field.  Or something.

- DML



More information about the jboss-development mailing list