hi,
if you are using the latest equinox, one good alternative is to use the
recently released org.apache.felix.logback.
you just need to set a proper logback configuration file defining the
appenders and log level and then use the vm argument as below (I used to
debug inside eclipse ide):
-Dlogback.configurationFile=${workspace_loc:your_project}/logback-test.xml
Also, it is better to set org.apache.felix.logback's start level to one,
so you won't miss any log entry.
See an example:
21:23:29,959 |-INFO in
ch.qos.logback.classic.joran.action.LoggerAction - Setting level of
logger [Events.Service.org.eclipse.osgi] to DEBUG
21:36:13||DEBUG|bundle org.apache.felix.scr:2.1.2 (20)bundle
org.eclipse.equinox.console:1.3.0.v20180119-0630 (22) : Starting
extension synchronously|L.org.apache.felix.scr||L.o.a.f.scr@?[main]
21:36:13||INFO|BundleEvent
STARTED|E.B.o.e.equinox.console||E.B.o.e.e.console@?[Framework Event
Dispatcher: Equinox Container: f558dbee-500a-4400-ae8a-0e68b1b46f2e]
21:36:18||DEBUG|ServiceEvent MODIFIED
{org.osgi.service.component.runtime.ServiceComponentRuntime}={service.changecount=19,
service.id=39, service.bundleid=20,
service.scope=singleton}|E.S.org.apache.felix.scr||E.S.o.a.f.scr@?[Timer-1]
regards,
Cristiano
On 06/08/2018 12:28, Alain Picard via osgi-dev wrote:
I want to enable debug logging / tracing of SCR when running with
Equinox. I tried to use config admin to configure
"org.apache.felix.scr.ScrService" but to no avail. Not sure if even if
Eclipse now uses felix scr if that is the way to go. Or it is the
whole log redirection thing
(https://io7m.com/documents/brutal-felix-logging/). Just looking for
console debug.
Thanks
Alain
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev