logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58709] New: Possibly incorrect code sample
Date Wed, 09 Dec 2015 15:33:38 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58709

            Bug ID: 58709
           Summary: Possibly incorrect code sample
           Product: Log4j
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Site & Docs
          Assignee: log4j-dev@logging.apache.org
          Reporter: daniel.thibault@drdc-rddc.gc.ca
                CC: log4j-dev@logging.apache.org

http://logging.apache.org/log4j/1.2/manual.html reads in part:
"Configuration
...
   static Logger logger = Logger.getLogger(MyApp.class);"

which should instead be:

"Configuration
...
   static Logger logger = Logger.getLogger(MyApp.class.getName());"

Later instances of the code snippet are correct.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
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


Mime
View raw message