JDK-6350749 : Enhance FileHandler to have Daily Log Rotation capabilities
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 1.4.2,6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-11-15
  • Updated: 2024-04-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
There is no provision to have daily log rotation capabilities in java.logging.


JUSTIFICATION :
While Log4j has the capability to add a Daily Rotate appenders, java logging does not have one. This suppose this is quite a common request to many org's. This will also eliminate the class-loader issue for Custom handlers used in a app-server. Currently I can't use any custom handlers.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Log file rotates daily to the given format of the file.

CUSTOMER SUBMITTED WORKAROUND :
Can write custom handlers. Can put them in a common classpath..., but will mess up other applications that depend on this classpath.

So... workaround.... Dont use Daily rotate handler or use log4j, or just go crazy.

Comments
EVALUATION This is a nice fix provided by Brian Harry. Initially, I wanted to integrate the fix into Mustang. However I was running into a couple of issues when tried to execute the test (also provided in the fix patch): 1. The test hangs on the VM exit. 2. A security exception is being trown. So, I consider this as risky to fix in Mustang because more time is needed to make it right. But I'm going to work on integrating this RFE (and a couple of others provided by Brian) into Dolphin. Would be nice to do it on the early stage of the release.
13-07-2006

EVALUATION Contribution-Forum:https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?messageID=11967&forumID=1463
13-03-2006