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

Log page should display current active log level

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      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"

        Attachments

          Activity

          Hide
          mindless 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)
          }
          
          Show
          mindless 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) }
          Hide
          scm_issue_link 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.

          Show
          scm_issue_link 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.

            People

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

              Dates

              Created:
              Updated:
              Resolved: