I tried to go through the tutorial on the Java logging API:
www.vogella.com/articles/Logging/article.html
But the generated files are empty (tested in Netbea
Change the following line (in the method de.vogella.logger.MyLogger.setup()
):
// Get the global logger to configure it
Logger logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
with:
// Get the global logger to configure it
Logger logger = Logger.getLogger("");
See more: