[logback-user] using logback in an eclipse plugin

Arne.Adams at t-online.de Arne.Adams at t-online.de
Sun Jun 21 06:52:10 CEST 2015


Hi,

	I am trying to use logback in an eclipse plugin. 

	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. 

	(Export-Package: ch.qos.logback.core, ch.qos.logback.classic,
ch.qos.logback.access ) 

	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")

	Added dependencies to the above plugins in my plugin project. 

	I got: 

	SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details. 

	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: 

	SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[bundleresource://4.fwk1183888521/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[bundleresource://4.fwk1183888521:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory] 

	Still no log messages are written. 

	Thanks in advance for any help  

	Regards, 

	Arne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20150621/186328ce/attachment.html>


More information about the Logback-user mailing list