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

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

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 1.2.3
    • logback-access
    • None
    • 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

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

            Dates

              Created:
              Updated: