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.