JDK-6467085 : Each day log file rotation in java.util.logging.FileHandler
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-09-04
  • Updated: 2011-02-16
  • Resolved: 2007-06-04
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
Include the ability to rotate files in java.util.logging.FileHandler on each new day.  Include a method in java.util.logging.FileHandler:
 private File generate(String pattern, int generation, int unique) throws IOException
 private synchronized void rotate()
 a protected modifer for further modification in child classes


JUSTIFICATION :
for convenience

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
we create a FileHandler  with %d pattern in file name e.g.  log%d.txt

and on each dayse well have:
log20060101.txt
log20060102.txt
log20060103.txt
.....


ACTUAL -
no actual behavior.

Comments
EVALUATION This seems to be a dup of the RFE: 6350749 Enhance FileHandler to have Daily Log Rotation capabilities So, I'm going to close this RFE as a duplication. Nelson, please, let me know if there are any problems with it.
05-09-2006