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

Improve logging message of ContextJNDISelector

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 0.9.12
    • None
    • logback-classic
    • None
    • Operating System: All
      Platform: All

    • 94

    Description

      14:08:09.153 [main] WARN root - The provided URL for contextmyContextName does not lead to a valid file

      First, there is a missing space between context and its name, second you should show which URL has been provided, e.g.:

      14:08:09.153 [main] WARN root - The provided URL 'my/url/' for context myContextName does not lead to a valid file

      @@@@

      Reproduce: http://logback.qos.ch/manual/contextSelector.html

      <env-entry>
      <description>JNDI logging context for this app</description>
      <env-entry-name>logback/context-name</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>myContextName</env-entry-value>
      </env-entry>

      <env-entry>
      <description>URL for configuring logback context</description>
      <env-entry-name>logback/configuration-resource</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>unknown.url</env-entry-value>
      </env-entry>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            sdavids@gmx.de Sebastian Davids
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: