Should loggers be declared static?

In is the traditional log4j usage pattern

should the logger instance declared as static?

First answer

Second and correct answer


With static loggers I'll immediately run into naming problems. It's common to use class names instead of inventing "some name"? The issue Creating Loggers DRY-ly is discussing this problem. Any comments?

Log4JStatic (last edited 2012-02-04 20:17:43 by cpc10-lewi14-2-0-cust355)