Antti Nevala created KARAF-7965:
-----------------------------------

             Summary: Log service can't find ROOT logger and doesn't support 
variable substitution for levels 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


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