I am using java.util.logging framework to implement logging in my JSF application. I have successfully done implementing this, but however I have a new requirement to rotate the logs and create a new log file for each day.
I am not able to figure out how this can be implemented. Any hints on implementation would be highly appreciated. Thanks.
This is how I have configured my logger:
myLogger = Logger.getLogger("info.aio"); fileHandler = new FileHandler("aioinfo.log", 1048576, 100, true); fileHandler.setFormatter(new SimpleFormatter()); myLogger.addHandler(fileHandler);