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

Log messages not sent to /log/all unless in hudson.* or jenkins.* namespaces

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      WebAppMain.installLogger only registers log handlers on a couple of top-level namespaces. Records logged under other names appear e.g. in stderr but not in /log/all.

      That is fine for core, but very bad for plugins which do their own logging, as these may be in all sorts of package hierarchies. For example, org.jenkinsci for plugins created from archetype. You can even see this with the SSHD plugin which logs something at startup that is lost from the web UI.

      The handler should I think be registered at the namespace root. If there is a need to specifically exclude messages from certain kinds of classes, such as those in an app server hosting Jenkins, then these should be blacklisted (e.g. by skipping just those records whose source class name can be defined in a class loader which is an ancestor of that used to load Jenkins.class).

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/WebAppMain.java
          http://jenkins-ci.org/commit/jenkins/3a0126f780bbd133d50615354a61e20364eb1fdf
          Log:
          [FIXED JENKINS-16952] Not all log messages were being captured at /log/all.


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/WebAppMain.java http://jenkins-ci.org/commit/jenkins/3a0126f780bbd133d50615354a61e20364eb1fdf Log: [FIXED JENKINS-16952] Not all log messages were being captured at /log/all. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #2299
          [FIXED JENKINS-16952] Not all log messages were being captured at /log/all. (Revision 3a0126f780bbd133d50615354a61e20364eb1fdf)

          Result = SUCCESS
          Jesse Glick : 3a0126f780bbd133d50615354a61e20364eb1fdf
          Files :

          • core/src/main/java/hudson/WebAppMain.java
          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2299 [FIXED JENKINS-16952] Not all log messages were being captured at /log/all. (Revision 3a0126f780bbd133d50615354a61e20364eb1fdf) Result = SUCCESS Jesse Glick : 3a0126f780bbd133d50615354a61e20364eb1fdf Files : core/src/main/java/hudson/WebAppMain.java changelog.html
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/WebAppMain.java
          http://jenkins-ci.org/commit/jenkins/e66a94868a8135490673dd4d0e3464000ca11319
          Log:
          JENKINS-16952 contextDestroyed needs to be changed to match.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/WebAppMain.java http://jenkins-ci.org/commit/jenkins/e66a94868a8135490673dd4d0e3464000ca11319 Log: JENKINS-16952 contextDestroyed needs to be changed to match.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/slaves/SlaveComputer.java
          http://jenkins-ci.org/commit/jenkins/0ca88a6ceae605e7d2e126a328a196c046a91a12
          Log:
          JENKINS-16952 JENKINS-18274 Slave computers should record all log messages at INFO+, not just those in the hudson.* namespace.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/slaves/SlaveComputer.java http://jenkins-ci.org/commit/jenkins/0ca88a6ceae605e7d2e126a328a196c046a91a12 Log: JENKINS-16952 JENKINS-18274 Slave computers should record all log messages at INFO+, not just those in the hudson.* namespace.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #2588
          JENKINS-16952 contextDestroyed needs to be changed to match. (Revision e66a94868a8135490673dd4d0e3464000ca11319)
          JENKINS-16952 JENKINS-18274 Slave computers should record all log messages at INFO+, not just those in the hudson.* namespace. (Revision 0ca88a6ceae605e7d2e126a328a196c046a91a12)

          Result = UNSTABLE
          Jesse Glick : e66a94868a8135490673dd4d0e3464000ca11319
          Files :

          • core/src/main/java/hudson/WebAppMain.java

          Jesse Glick : 0ca88a6ceae605e7d2e126a328a196c046a91a12
          Files :

          • core/src/main/java/hudson/slaves/SlaveComputer.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2588 JENKINS-16952 contextDestroyed needs to be changed to match. (Revision e66a94868a8135490673dd4d0e3464000ca11319) JENKINS-16952 JENKINS-18274 Slave computers should record all log messages at INFO+, not just those in the hudson.* namespace. (Revision 0ca88a6ceae605e7d2e126a328a196c046a91a12) Result = UNSTABLE Jesse Glick : e66a94868a8135490673dd4d0e3464000ca11319 Files : core/src/main/java/hudson/WebAppMain.java Jesse Glick : 0ca88a6ceae605e7d2e126a328a196c046a91a12 Files : core/src/main/java/hudson/slaves/SlaveComputer.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/WebAppMain.java
          http://jenkins-ci.org/commit/jenkins/e0973026dc03df7fabc5d61dfd28709945d9ee06
          Log:
          JENKINS-16952 contextDestroyed needs to be changed to match.
          (cherry picked from commit e66a94868a8135490673dd4d0e3464000ca11319)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/WebAppMain.java http://jenkins-ci.org/commit/jenkins/e0973026dc03df7fabc5d61dfd28709945d9ee06 Log: JENKINS-16952 contextDestroyed needs to be changed to match. (cherry picked from commit e66a94868a8135490673dd4d0e3464000ca11319)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/slaves/SlaveComputer.java
          http://jenkins-ci.org/commit/jenkins/63001918f5e2f48222d6747eab70f24eeed0f4e7
          Log:
          JENKINS-16952 JENKINS-18274 Slave computers should record all log messages at INFO+, not just those in the hudson.* namespace.
          (cherry picked from commit 0ca88a6ceae605e7d2e126a328a196c046a91a12)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/slaves/SlaveComputer.java http://jenkins-ci.org/commit/jenkins/63001918f5e2f48222d6747eab70f24eeed0f4e7 Log: JENKINS-16952 JENKINS-18274 Slave computers should record all log messages at INFO+, not just those in the hudson.* namespace. (cherry picked from commit 0ca88a6ceae605e7d2e126a328a196c046a91a12)

            People

            • Assignee:
              Unassigned
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: