logging - Java Logger Creates Empty Log Files in Home Directory -


I am using a Java logger in my application / / with file handler set on DemoApp /AAA.log. But every time my app launches my JVM, I create empty java.log and java.log.lck files in my home directory.

Why any thoughts of any person are happening?

Try to load it as a logger configuration property file:

  handler = java.util.logging.FileHandler java.util.logging.FileHandler.level = all java.util.logging.FileHandler.append = true Java Util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter java.util.logging.FileHandler.pattern = testlog% u.log .level = all  

this should be a testlog0 .log file in the working directory of the program If this does not solve the problem, please provide the minimum example. Keep in mind while using directories.


Comments