felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5525) Allow to switch Logger to jul using a framework property
Date Fri, 24 Feb 2017 13:16:44 GMT

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

Christian Schneider commented on FELIX-5525:

As far as I understood from Guillaume we use reflection to avoid a dependency from karaf main
to felix as it also must work with equinox.
I think my change should still support this. Do you think we need to potentially support other
loggers? As far as I know this feature is only used by karaf.

> Allow to switch Logger to jul using a framework property
> --------------------------------------------------------
>                 Key: FELIX-5525
>                 URL: https://issues.apache.org/jira/browse/FELIX-5525
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-5.6.1
>            Reporter: Christian Schneider
>             Fix For: framework-5.6.4
> In the issue FELIX-4871 there is some reflection code added to be able to use a supplied
logger for karaf.
> Actually the only thing we do with this in karaf is to switch the logging to use jul.
So I propose we simply allow to switch felix to use jul by setting a framework property:
> felix.log.type=jul
> By default felix will use stdout and if the property is set like above it will log to
> This allows to remove all the reflection code in felix as well as in karaf.

This message was sent by Atlassian JIRA

View raw message