[JIRA] (JENKINS-50970) SLF4J logging not working in Jenkins Swarm plugin

2 views
Skip to first unread message

thefriendlycoder@gmail.com (JIRA)

unread,
Apr 24, 2018, 1:22:03 PM4/24/18
to jenkinsc...@googlegroups.com
Kevin Phillips created an issue
 
Jenkins / Improvement JENKINS-50970
SLF4J logging not working in Jenkins Swarm plugin
Issue Type: Improvement Improvement
Assignee: Oleg Nenashev
Components: swarm-plugin
Created: 2018-04-24 17:21
Environment: jenkins v2.108
swarm v3.12
JDK 1.8.0
Windows 7 / CentOS 7.4 host OSes
Priority: Major Major
Reporter: Kevin Phillips

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 8, 2018, 6:01:02 PM6/8/18
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
Change By: Oleg Nenashev
Assignee: Oleg Nenashev

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 8, 2018, 6:03:01 PM6/8/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 8, 2018, 6:03:02 PM6/8/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Improvement JENKINS-50970
 
Re: SLF4J logging not working in Jenkins Swarm plugin

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

me@basilcrow.com (JIRA)

unread,
Jun 1, 2019, 2:06:04 PM6/1/19
to jenkinsc...@googlegroups.com
Basil Crow updated an issue
 
Jenkins / Bug JENKINS-50970
Change By: Basil Crow
Issue Type: Improvement Bug
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages