Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6467085

Each day log file rotation in java.util.logging.FileHandler

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 6
    • core-libs

      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.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: