Uploaded image for project: 'logback-audit'
  1. logback-audit
  2. LBAUDIT-3

When config file is set via system property, the URL is prefixed with app name

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 0.6
    • GlassFish 3.0.1

    Description

      In AuditorFactory.java in method autoConfig, the autoConfigFileByProperty should not be prefixed with pathPrefix when creating URL.

      For example, if the system property is set as:
      -Dlogback.audit.autoconfig.file=file:///${com.sun.aas.instanceRoot}/config/logback-audit.xml

      and client application name is set as appname then URL will be set to:
      appname/file:///${com.sun.aas.instanceRoot}/config/logback-audit.xml

      This bug results in configs only being set via AUTOCONFIG_FILE which complicates multi module projects resulting in multiple config files instead of just using one at the domain level.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            anthony.schreiner@unisys.com Anthony Schreiner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: