By the way, I will blog and send an update on the mailing list about R7
in Karaf, I will add a section about the logging.

Regards
JB

On 01/05/2019 12:56, Paul Fraser wrote:
> Hi,
> 
> B J Hargrave has developed an Slf4j/OSGi bundle which routes all slf4j
> log events to the new R7 osgi log service.
> 
> https://www.youtube.com/watch?v=DJF0aETiNec&feature=youtu.be about 24
> mins in.
> 
> 19min 30s into video he shows how the new log service is used ()
> 
>  ===========================
> 
>   @Reference(service=LoggerFactory.class)
> 
>     private Logger logger;
> 
> and then as usual in code
> 
>     logger.info("Hello new bundle");
> 
> =============================
> 
>  I would like to be able to use this new logging asusage in code
> requires only this @Reference entry and no need for the slf4j code
> usually required in every bundle.
> 
> Being very new to Karaf, any guidance available as to how to set up the
> logging config to achieve this end would be most appreciated.
> 
> I am running Karaf 4.3-SNAPSHOT.
> 
> Paul Fraser
> 
> 
> 
> 
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to