Logging in Eclipse/OSGi plugins

后端 未结 2 1342
独厮守ぢ
独厮守ぢ 2020-12-23 15:07

I am starting to develop an Eclipse plugin (technically, an OSGi plugin) and one of the first problems I\'ve run into is that I can\'t seem to control the commons-logging ou

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 15:23

    This is not an actual answer to your question, but you might find some clues in this set of articles by ekke.

    I suppose you read already "Using Log4J in Eclipse Equinox/OSGi":

    Did you launch an osgi session in a console mode ?

    java -jar org.eclipse.osgi_3.3.0.v20070530.jar -console -noExit -clean
    

    That way, you may test log4j in a pure osgi environment and check if it works there.

    Let use know if you find a solution (publish it as an answer), and I will vote it up ;)

提交回复
热议问题