Currently I am using java.util.logging (1.4) in my project running on Websphere App Server v6.1.
I am facing a problem where many empty *.log.n & also *.lck will be generated automatically when running the program.
I hv checked and found that the problem is due to the handlers are not closed properly in the API, is that true? And also, I know that the problem has been resolved in 1.5, but I still facing the same problem even I tried on it. I hv also heard that it can be resolved by creating a Singleton Logger, so that it will always generate only one *.log as well as *.lck. Is there any example code can be referred if it is true. Pls kindly see my code snippet as below for further understanding.
In Java Class
private static final Logger logger = Logger.getLogger("com.xxx.yyyy");
In Servlet Class
In logging.properties file
com.xxx.yyyy.handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler