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

Allow to decrease logging level for a specific logger

    Details

    • Similar Issues:

      Description

      I'm trying to configure Jenkins loggers like the following:

      • Log Warnings and up by default
      • For certain spammy loggers I don't care about (like node monitors), require those to be ERROR before they show up to reduce the amount of log spam.

      It doesn't seem to be possible:

      If you have multiple entries, a log entry that matches any of them will be collected.

      In general, it seems like a good idea to start by including everything in a certain log, and then excluding known issues and false positives in specific loggers.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Proposed solutions:

          Show
          danielbeck Daniel Beck added a comment - Proposed solutions: https://github.com/jenkinsci/jenkins/pull/1090 (use logger specificity) https://github.com/jenkinsci/jenkins/pull/1091 (use logger ordering)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/logging/LogRecorder.java
          core/src/test/java/hudson/logging/LogRecorderTest.java
          war/src/main/webapp/help/LogRecorder/logger.html
          http://jenkins-ci.org/commit/jenkins/b9426e4f17e551d6d68818b8a0adb88c6bb26a18
          Log:
          [FIXED JENKINS-21386] Allow more specific loggers to reduce log level

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/logging/LogRecorder.java core/src/test/java/hudson/logging/LogRecorderTest.java war/src/main/webapp/help/LogRecorder/logger.html http://jenkins-ci.org/commit/jenkins/b9426e4f17e551d6d68818b8a0adb88c6bb26a18 Log: [FIXED JENKINS-21386] Allow more specific loggers to reduce log level
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          core/src/main/java/hudson/logging/LogRecorder.java
          core/src/test/java/hudson/logging/LogRecorderTest.java
          war/src/main/webapp/help/LogRecorder/logger.html
          http://jenkins-ci.org/commit/jenkins/0fd39c445a7a3e58ea9ae5ce605e6b01201b4d07
          Log:
          Merge pull request #1090 from daniel-beck/JENKINS-21386

          [FIXED JENKINS-21386] Allow more specific loggers to reduce log level

          Compare: https://github.com/jenkinsci/jenkins/compare/f082765029b3...0fd39c445a7a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/logging/LogRecorder.java core/src/test/java/hudson/logging/LogRecorderTest.java war/src/main/webapp/help/LogRecorder/logger.html http://jenkins-ci.org/commit/jenkins/0fd39c445a7a3e58ea9ae5ce605e6b01201b4d07 Log: Merge pull request #1090 from daniel-beck/ JENKINS-21386 [FIXED JENKINS-21386] Allow more specific loggers to reduce log level Compare: https://github.com/jenkinsci/jenkins/compare/f082765029b3...0fd39c445a7a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/logging/LogRecorder.java
          core/src/main/resources/hudson/logging/LogRecorder/configure.jelly
          core/src/test/java/hudson/logging/LogRecorderTest.java
          http://jenkins-ci.org/commit/jenkins/bd6b999eb0fd4156a281c75dd535090312512fff
          Log:
          [FIXED JENKINS-21386] Allow reordering loggers, use first with matching name.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/logging/LogRecorder.java core/src/main/resources/hudson/logging/LogRecorder/configure.jelly core/src/test/java/hudson/logging/LogRecorderTest.java http://jenkins-ci.org/commit/jenkins/bd6b999eb0fd4156a281c75dd535090312512fff Log: [FIXED JENKINS-21386] Allow reordering loggers, use first with matching name.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #3173
          [FIXED JENKINS-21386] Allow more specific loggers to reduce log level (Revision b9426e4f17e551d6d68818b8a0adb88c6bb26a18)
          [FIXED JENKINS-21386] Allow reordering loggers, use first with matching name. (Revision bd6b999eb0fd4156a281c75dd535090312512fff)

          Result = UNSTABLE
          daniel-beck : b9426e4f17e551d6d68818b8a0adb88c6bb26a18
          Files :

          • core/src/main/java/hudson/logging/LogRecorder.java
          • war/src/main/webapp/help/LogRecorder/logger.html
          • core/src/test/java/hudson/logging/LogRecorderTest.java

          daniel-beck : bd6b999eb0fd4156a281c75dd535090312512fff
          Files :

          • core/src/main/resources/hudson/logging/LogRecorder/configure.jelly
          • core/src/test/java/hudson/logging/LogRecorderTest.java
          • core/src/main/java/hudson/logging/LogRecorder.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3173 [FIXED JENKINS-21386] Allow more specific loggers to reduce log level (Revision b9426e4f17e551d6d68818b8a0adb88c6bb26a18) [FIXED JENKINS-21386] Allow reordering loggers, use first with matching name. (Revision bd6b999eb0fd4156a281c75dd535090312512fff) Result = UNSTABLE daniel-beck : b9426e4f17e551d6d68818b8a0adb88c6bb26a18 Files : core/src/main/java/hudson/logging/LogRecorder.java war/src/main/webapp/help/LogRecorder/logger.html core/src/test/java/hudson/logging/LogRecorderTest.java daniel-beck : bd6b999eb0fd4156a281c75dd535090312512fff Files : core/src/main/resources/hudson/logging/LogRecorder/configure.jelly core/src/test/java/hudson/logging/LogRecorderTest.java core/src/main/java/hudson/logging/LogRecorder.java

            People

            • Assignee:
              danielbeck Daniel Beck
              Reporter:
              danielbeck Daniel Beck
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: