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

java.util.logging.FileHandler.pattern should support use of system properties

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6u10
    • core-libs

      FULL PRODUCT VERSION :
      JDK 1.6.0_17-b04

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP SP2

      A DESCRIPTION OF THE PROBLEM :
      Am trying to set the directory where the log file should be written using standard system property syntax, but the java.util.logging.FileHandler does not appear to recognize/parse system properties.

         java.util.logging.FileHandler.pattern=${cataline.home}/logs/file%u.log

      This goes against the grain of every other java based logging mechanism.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. java.util.logging.FileHandler.pattern=${cataline.home}/logs/file%u.log
      2. Run an application that uses the logger.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expect that the ${catalina.home} gets evaluated.
      ACTUAL -
      The FileHandler only tries to parse/substitute its own limited set of special variables (i.e. %h, etc.)

      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: