How to write logs in text file when using java.util.logging.Logger
Try this sample. It works for me. Produces the output at MyLogFile.log Edit: To remove the console handler, use since the ConsoleHandler is registered with the parent logger from which all the loggers derive.