Yes, this is the way to use the new Logger API with DS < 1.4. DS 1.4 has specific support to call to the getLogger method for the component so that you can use field and constructor injection. But to use the new Logger API with DS 1.3 and lower, you will need to method inject the LoggerFactory and
> *Gesendet:* Montag, 9. April 2018 13:03
> *An:* Fauth Dirk (AA-AS/EIS2-EU) ; OSGi
> Developer Mail List
> *Betreff:* Re: [osgi-dev] How to use LoggerFactory with DS?
>
>
>
> Hi Dirk, have you read the section on Logger support in R7 Declarative
> Services? See https://
. April 2018 13:03
An: Fauth Dirk (AA-AS/EIS2-EU) ; OSGi Developer Mail
List
Betreff: Re: [osgi-dev] How to use LoggerFactory with DS?
Hi Dirk, have you read the section on Logger support in R7 Declarative
Services? See
https://osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#servi
Hi Dirk, have you read the section on Logger support in R7 Declarative
Services? See
https://osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#service.component-logger.support
(or section 112.3.12 in the PDF).
This section shows the recommended approach to obtaining a Logger instance
i