Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3426

Verbose error message when Log4j is enabled

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The code quoted here from CoreContainer.java ends up looking for a class named Log4j instead of Log4jWatcher. Neither name exists in the tree.

      // Now load the framework
      if(fname!=null) {
      if("JUL".equalsIgnoreCase(fname))

      { logging = new JulWatcher(slf4jImpl); }

      // else if( "Log4j".equals(fname) )

      { // logging = new Log4jWatcher(slf4jImpl); // }

      else {
      try

      { logging = loader.newInstance(fname, LogWatcher.class); }

      catch (Throwable e)

      { log.warn("Unable to load LogWatcher", e); }

      }

        Attachments

        1. solr-3426.patch
          0.8 kB
          Benson Margulies

          Activity

            People

            • Assignee:
              ryantxu Ryan McKinley
              Reporter:
              bmargulies Benson Margulies
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: