[ 
https://issues.apache.org/jira/browse/FELIX-5457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16221815#comment-16221815
 ] 

Carsten Ziegeler commented on FELIX-5457:
-----------------------------------------

In addition to the support for Logger in components, the DS implementation must 
use an R7 logger using the component category (if an R7 logger is available)
I think we shouldn't bind the implementation to the R7 logger API, it should 
not be required to run an R7 DS implementation.

In addition, we should refactor/check the logging throughout our implementation 
as I think we have right now different/overlapping concepts and logging could 
be improved in general

> [R7] Logger Support
> -------------------
>
>                 Key: FELIX-5457
>                 URL: https://issues.apache.org/jira/browse/FELIX-5457
>             Project: Felix
>          Issue Type: Sub-task
>          Components: Declarative Services (SCR)
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: scr-2.1.0
>
>
> DS must add special support for injecting Logger and FormatterLogger objects 
> even though they themselves are not services. When a component references the 
> Logger or FormatterLogger types, SCR must get first get the LoggerFactory 
> service matching the reference and then call the getLogger(String, Class)  
> method passing the component implementation class name as the first argument 
> and the Logger type as the second argument. The returned Logger object is 
> then injected for the reference, rather than the LoggerFactory service used 
> to create the Logger.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to