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

ASF GitHub Bot commented on KARAF-7965:
---------------------------------------

aenevala opened a new pull request, #1948:
URL: https://github.com/apache/karaf/pull/1948

   Fix LogServiceLogback to find root logger correctly and add support basic 
variable substitution




> Log service can't find ROOT logger and doesn't support variable substitution 
> when using Logback logging backend
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-7965
>                 URL: https://issues.apache.org/jira/browse/KARAF-7965
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.4.7
>            Reporter: Antti Nevala
>            Priority: Minor
>
> When using logback as logging backend with custom distribution, Karaf fails 
> to find the root logger.
> {{karaf@root()> log:get}}
> {{Logger │ Level}}
> {{───────┼──────}}
> And when issuing `log:set DEBUG` it creates duplicate entry in logback.xml
> {{<root level="WARN">}}
> {{   <appender-ref ref="FILE"/>}}
> {{   <appender-ref ref="OSGI"/>}}
> {{</root>}}
> {{<root level="DEBUG"/>}}
> Also it doesn't support variable substitution e.g.
> {{<logger name="test" level="${LOG_LEVEL:-WARN}"/>}}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to