• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • swarm-plugin
    • jenkins v2.108
      swarm v3.12
      JDK 1.8.0
      Windows 7 / CentOS 7.4 host OSes
    • 3.17

      When launching the Jenkins swarm client, I see the following warning message in the console output:

       

      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"

      SLF4J: Defaulting to no-operation (NOP) loger implementation

       

      Consequently, I am unable to generate log files for the service, making it impossible to debug errors and connection issues and such in production. This seems like a silly issue but it is debilitating and it would be great if someone could fix it or tell me how to work around the issue.

       

      I've looked up the slf4j.org website where it describes some workarounds to this error by placing one of the slf4j jars in the Java class path. I downloaded several different versions of slf4j, and copied different jar files contained therein to the default class path, all with no success. Even explicitly setting the java class path to a folder containing all the jars for slf4j didn't work. What am I doing wrong?

      Any help would be greatly appreciated.

          [JENKINS-50970] SLF4J logging not working in Swarm client

          Kevin Phillips created issue -
          Oleg Nenashev made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ]

          Oleg Nenashev added a comment -

          Classes are just not bundled into Swarm Client.
          slf4j-simple or other LogFactory library should be added to the Swarm Client Plugin so that it works.
          Looks trivial

          Oleg Nenashev added a comment - Classes are just not bundled into Swarm Client. slf4j-simple or other LogFactory library should be added to the Swarm Client Plugin so that it works. Looks trivial
          Oleg Nenashev made changes -
          Labels New: newbie-friendly
          Basil Crow made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          Basil Crow made changes -
          Summary Original: SLF4J logging not working in Jenkins Swarm plugin New: SLF4J logging not working in Swarm client
          Basil Crow made changes -
          Assignee New: Basil Crow [ basil ]

          Basil Crow added a comment -

          Fixed in #98.

          I've also added documentation for the logging subsystem in #99.

          Basil Crow added a comment - Fixed in #98 . I've also added documentation for the logging subsystem in #99 .
          Basil Crow made changes -
          Released As New: 3.17
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]

          Basil Crow added a comment -

          Released in 3.17.

          Basil Crow added a comment - Released in 3.17.
          Basil Crow made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            basil Basil Crow
            leedega Kevin Phillips
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: