I am using the default java.util.Logging API to print information to my log.
Logger.getLogger(Datastore.class.getName());
logger.info("Registering ");
where Datastore is the name of the class.But I am unable to find where the logs are stored. I am running on a Windows 7 machine and the above program is a part of a servlet. I apologize for the seemingly stupid question, but sometimes such insignificant things greatly hinder progress.
By default the
java.util.logging.Loggersends output to the console and aren’t printed to a file. You will have to add ajava.util.logging.Handlerto the Logger.Below are snippets to create Handlers of HTML, TEXTFILE. Hope this helps.
For further reference read this article.