>>>>> Jean-Baptiste Onofre <[email protected]>: > Hi, > Yes, not surprising: LogService is from cmpn so core is required.
> Instead of using LogService, you can use slf4j (and so pax-logging), and you > won’t have the core dependency (at least for logging). Actually I think using the logservice is simpler... slf4j and the various config files to make logs appear and disappear, have always been a mystery to me... The logservice is nicely mockable also I made myself this one a long time ago for use in unit tests: https://github.com/steinarb/adapters-for-osgi-services/blob/master/service-mocks/src/main/java/no/priv/bang/osgi/service/mocks/logservice/MockLogService.java#L39 This MockLogService dumps everything to System.err (for quick feedback in the JUnit console of the IDE) and also saves it into a list that can be asserted on. But if there is a pax-logging, it sounds like it's something I should check out. So I'll do that.
