Bug 58709 - Possibly incorrect code sample
Summary: Possibly incorrect code sample
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Site & Docs (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-09 15:33 UTC by Daniel U. Thibault
Modified: 2015-12-09 15:33 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel U. Thibault 2015-12-09 15:33:38 UTC
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.