Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2210

Log page should display current active log level

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Platform: All, OS: All

      If I change the log level to "all" and reload the log page, it does not show what the
      current level that is being used.

      Steps to reproduce
      1. Show the log page (Manage->Log)
      2. Change the log level to all
      3. Reload page

      Expected outcome:
      Page should display current log level in the log level combo box

      Acutal outcome:
      Log level combo box shows "inherited"

          [JENKINS-2210] Log page should display current active log level

          Alan Harder added a comment -

          It doesn't make sense to prepopulate a value in that form.. there is a "name" box where you can enter the logger to adjust.. I don't think it is intuitive to default the listbox there with the log level of the "default logger" (the one with no name).
          Perhaps better is to move this form to a separate page (the bottom of the "All Hudson Logs" page isn't so intuitive either.. could add "Log Levels" in the sidepanel of the log section), and show all configured log levels above that form, so you know what you're adjusting.
          Type this in the script console to see configured log levels in your Hudson:

          LM=java.util.logging.LogManager.logManager
          LN=LM.loggerNames
          while (LN.hasMoreElements()) {
            N = LN.nextElement()
            L = LM.getLogger(N)
            if (L.level != null) println(N + " = " + L.level)
          }
          

          Alan Harder added a comment - It doesn't make sense to prepopulate a value in that form.. there is a "name" box where you can enter the logger to adjust.. I don't think it is intuitive to default the listbox there with the log level of the "default logger" (the one with no name). Perhaps better is to move this form to a separate page (the bottom of the "All Hudson Logs" page isn't so intuitive either.. could add "Log Levels" in the sidepanel of the log section), and show all configured log levels above that form, so you know what you're adjusting. Type this in the script console to see configured log levels in your Hudson: LM=java.util.logging.LogManager.logManager LN=LM.loggerNames while (LN.hasMoreElements()) { N = LN.nextElement() L = LM.getLogger(N) if (L.level != null ) println(N + " = " + L.level) }

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/logging/LogRecorderManager.java
          trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all.jelly
          trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all_de.properties
          trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all_fr.properties
          trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all_ja.properties
          trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/sidepanel.jelly
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/26344
          Log:
          [FIXED JENKINS-2210] Move form to adjust logging levels to its own page
          and include table of configured levels.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/logging/LogRecorderManager.java trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all.jelly trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all_de.properties trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all_fr.properties trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/all_ja.properties trunk/hudson/main/core/src/main/resources/hudson/logging/LogRecorderManager/sidepanel.jelly trunk/www/changelog.html http://jenkins-ci.org/commit/26344 Log: [FIXED JENKINS-2210] Move form to adjust logging levels to its own page and include table of configured levels.

            mindless Alan Harder
            redsolo redsolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: