[
https://issues.apache.org/jira/browse/FELIX-5866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510154#comment-16510154
]
Raymond Augé commented on FELIX-5866:
-------------------------------------
for example:
{code:java}
@Reference
void setLoggerAdmin(LoggerAdmin loggerAdmin) {
LoggerContext loggerContext =
loggerAdmin.getLoggerContext("org.apache.felix.scr");
Map<String, LogLevel> levels = new HashMap<String, LogLevel>();
levels.put(Logger.ROOT_LOGGER_NAME, LogLevel.DEBUG);
loggerContext.setLogLevels(levels);
}
{code}
this should put SCR into debug, but it doesn't.
> scr does not respect the log level set in LoggerAdmin
> -----------------------------------------------------
>
> Key: FELIX-5866
> URL: https://issues.apache.org/jira/browse/FELIX-5866
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Reporter: Raymond Augé
> Priority: Major
>
> With R7 logging, configuration of logging levels takes place through the
> LoggerAdmin.
> SCR first checks it's own log level configuration ignoring the level set in
> LoggerAdmin.
> I believe that when r7 logging is enabled, the SCR should first check the
> LoggerAdmin level and only then fallback to the SCR configuration.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)