You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/09/16 10:24:01 UTC

[jira] [Commented] (SLING-3069) Allow attaching an Appender to a Logger without changing its existing Log level

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

Carsten Ziegeler commented on SLING-3069:
-----------------------------------------

I suggest to create three different service registration properties:
- logger name
- log level (optional) - defaults to empty value
- additive (optional) - defaults to true

If no log level is set, the log level of the logger is not changed at all
                
> Allow attaching an Appender to a Logger without changing its existing Log level
> -------------------------------------------------------------------------------
>
>                 Key: SLING-3069
>                 URL: https://issues.apache.org/jira/browse/SLING-3069
>             Project: Sling
>          Issue Type: Bug
>          Components: Commons
>    Affects Versions: Commons Log 4.0.0
>            Reporter: Chetan Mehrotra
>            Priority: Minor
>              Labels: logback
>
> Commons Log now supports attaching Appenders as OSGi services. Current implementation while trying to attach appender also modifies the Log level to INFO if none specified. It should be possible to attach an appender without modifying the existing log level

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira