Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1467

LogbackValve fails to find config with absolute path outside of tomcat home

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: logback-access
    • Labels:
      None
    • Environment:

      linux, tomcat 9, java 11

      Description

      When a filename property is specified, LogbackValve searches for the config by prepending catalina.base and catalina.home to the path, then looks for it as a resource. Neither of those manages to find a file referenced with an absolute path (e.g. /tmp/logback-access.xml).

      A simple workaround is to create a symlink from the default location to the external file, but this shouldn't be necessary. Specifying a file location outside tomcat home is convenient in certain situations and should be supported.

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              gyoetam Tamás Györgyey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: