Make it an instance variable:
private Logger logger = Logger.getLogger(getClass().getName());
On 1/8/07, Sunil Bapat <[EMAIL PROTECTED]> wrote:
I read the log4j article regarding using RepositorySelector to create
distinct logger hierarchies for multiple web applications on the same
servlet cont
I read the log4j article regarding using RepositorySelector to create
distinct logger hierarchies for multiple web applications on the same
servlet container.
However in all the log4j examples, to prevent calling getLogger for
every logger call, the logger usage pattern is public class MyClass {