Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16206 Migrate from Log4j1 to Log4j2
  3. HADOOP-18653

LogLevel servlet to determine log impl before using setLevel

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      LogLevel GET API is used to set log level for a given class name dynamically. While we have cleaned up the commons-logging references, it would be great to determine whether slf4j log4j adapter is in the classpath before allowing client to set the log level.

      Proposed changes:

      • Use slf4j logger factory to get the log reference for the given class name
      • Use generic utility to identify if the slf4j log4j adapter is in the classpath before using log4j API to update the log level
      • If the log4j adapter is not in the classpath, report error in the output

      Attachments

        Issue Links

          Activity

            People

              vjasani Viraj Jasani
              vjasani Viraj Jasani
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: