Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1893

Failure to configure log handler properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.5.4
    • Component/s: Configuration
    • Security Level: Jimmy
    • Labels:

      Description

      Log#configure(Properties) uses java.util.Properties to configure log related properties. However, since java.util.Properties is a hashtable, the processing sequence of the configuration items is not guaranteed.

      For example, it could process 'java.util.logging.FileHandler.limit=10000000' before 'handlers=java.util.logging.FileHandler'. At this moment, Log#configure() does not recognize any handlers, and hence would not view 'java.util.logging.FileHandler.limit' as related to 'java.util.logging.FileHandler'. Log#configure() would then try to set the log level of the class 'java.util.logging.FileHandler.limit' to '10000000', which is not a valid log level.

      One possible solution would be to parse the log configuration properties twice. The first time is to locate the handlers. The second time is to fine tune the handler settings.

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            neillee neillee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: