<html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body><p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Hi,<br /></span></p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">I am trying to use logback in an eclipse plugin.</span></p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">I wrapped logback-access-1.1.3.jar, logback-core-1.1.3.jar, logback-classic-1.1.3.jar in an clipse plugin project.</span></p>
<p style="margin: 0px 5px 0px 0px;">(Export-Package: ch.qos.logback.core, ch.qos.logback.classic, ch.qos.logback.access )</p>
<p style="margin: 0px 5px 0px 0px;"> </p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">I wrapped slf4j-api-1.7.12.jar in an eclipse plugin project, with Export-Package: org.slf4j, added dependency to the above:(Require-Bundle: LogbackAsPlugin;bundle-version="1.0.0")<br /></span></p>
<p> </p>
<p><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Added dependencies to the above plugins in my plugin project.</span></p>
<p style="margin: 0px 5px 0px 0px;"> </p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">I got:</span></p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".<br />SLF4J: Defaulting to no-operation (NOP) logger implementation<br />SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.</span></p>
<p style="margin: 0px 5px 0px 0px;"> </p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Found a hint in the web indicating that adding slf4j-simple jar to the dependencies might help, did add slf4j-simple-1.7.12.jar to my SLF4J wrapper plugin, now I get:</span></p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">SLF4J: Class path contains multiple SLF4J bindings.<br />SLF4J: Found binding in [bundleresource://4.fwk1183888521/org/slf4j/impl/StaticLoggerBinder.class]<br />SLF4J: Found binding in [bundleresource://4.fwk1183888521:1/org/slf4j/impl/StaticLoggerBinder.class]<br />SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.<br />SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]</span></p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Still no log messages are written.</span></p>
<p style="margin: 0px 5px 0px 0px;"> </p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Thanks in advance for any help </span></p>
<p style="margin: 0px 5px 0px 0px;"> </p>
<p style="margin: 0px 5px 0px 0px;"> </p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Regards,</span></p>
<p style="margin: 0px 5px 0px 0px;"><span style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;text-decoration:none">Arne</span></p>
<p style="margin: 0px 5px 0px 0px;"> </p></body></html>