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

Verbose error message when Log4j is enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.0-ALPHA
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: