Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2427

Superflous attributes in logging subsystem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.CR1
    • 7.1.0.Alpha1
    • Logging
    • None

      The domain model in the logging subsystem includes "name" attributes in the handlers and a "category" attribute in the loggers. These are not needed because they are the identifier of the entity. It could also lead to confusion because they could conceivably be changed and no longer match the entity identifier.

      "name" => "foo" is not needed here:

      "console-handler" => \{
          "foo" => \{
              "autoflush" => true,
              "encoding" => undefined,
              "formatter" => "%d\{HH:mm:ss,SSS\} %-5p [%c] (%t) %s%E%n",
              "level" => "INFO",
              "name" => "foo",
              "target" => "System.out"
          \},
      

      "category" => "sun.rmi" is not needed here:

      "logger" => \{
          "sun.rmi" => \{
              "category*" => "sun.rmi",
              "handlers" => undefined,
              "level" => "WARN",
              "use-parent-handlers" => true
          \},
      

              jperkins-rhn James Perkins
              ssilvert@redhat.com Stan Silvert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: