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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 6
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: