logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44555] New: com.apache.log4j.varia. NullAppender lack static accessor to static instance
Date Fri, 07 Mar 2008 13:32:01 GMT

           Summary: com.apache.log4j.varia.NullAppender lack static accessor
                    to static instance
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: ola.mattsson@gmail.com

I noticed that the NullAppender class have a private static NullAppender
instance variable, which is supposed to let you avoid creating new NullAppender
instances whenever you need one. But the getInstance method that is supposed to
return the instance is not static, so you have to first create a new
NullAppender before you can get the static instance.
Seems kinda pointless, doesn't it?

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message