If you install the 
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.logger.simple.provider
 
<https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.logger.simple.provider>
 (which a prior version included in the default distro) all SLF4J entries are 
transported to the OSGi log service. From there you can look at them at the 
Webconsole or the Felix Gogo log command.

The current logger admin in the default OSGi enRoute distro unfortunately 
cannot change the level that is logged, it is fixed at WARNING. The Gogo 
commands used to change the level for some reason stopped working on Gogo. I’ve 
fixed this in the bundles repository but not release a new distro yet. It also 
does not need some documentation. 

There is a new bundle in progress 
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.command.enroute.provider
 
<https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.command.enroute.provider>
 that contains a number of interesting Gogo commands, among which a -t option 
to ’tail’ the log.

Last but not least, the OSGi is working on a new Logger API and as soon as that 
is stabilized OSGi enRoute will start using that. It has lots of similarities 
since the requirements were largely derived from the OSGi enRoute work.

Kind regards,

        Peter Kriens

> 
> On 13 jun. 2016, at 10:02, Paul F Fraser <[email protected]> wrote:
> 
> Hi,
> 
> I have looked through the osgi logging bundles and the example logging bundle 
> but cannot yet work out what I need to do to use EnRoute logging in my 
> project.
> 
> Are the rotating logger and the simple logger meant to work together?
> 
> Presumably, I use slf4j in each class but what then?
> 
> Regards
> 
> Paul Fraser
> 
> 
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to