Re: [osgi-dev] How to use LoggerFactory with DS?

2018-04-09 Thread BJ Hargrave via osgi-dev
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

Re: [osgi-dev] How to use LoggerFactory with DS?

2018-04-09 Thread Neil Bartlett via osgi-dev
> *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://

Re: [osgi-dev] How to use LoggerFactory with DS?

2018-04-09 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
. 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

Re: [osgi-dev] How to use LoggerFactory with DS?

2018-04-09 Thread Neil Bartlett via osgi-dev
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