You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/03 22:58:00 UTC

[jira] [Commented] (KARAF-6027) Unable to set log levels for package names that contain numbers

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

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

emmberk opened a new pull request #673: [KARAF-6027] Fix setting logs for package names that contain numbers
URL: https://github.com/apache/karaf/pull/673
 
 
   This PR updates the `log:get` command to report the correct log level for loggers that contain numbers.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Unable to set log levels for package names that contain numbers
> ---------------------------------------------------------------
>
>                 Key: KARAF-6027
>                 URL: https://issues.apache.org/jira/browse/KARAF-6027
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.1
>            Reporter: Emily Berk
>            Priority: Minor
>
> Steps to  reproduce:
> # Use the /bin/karaf script to start Karaf with the default log configuration file (https://github.com/apache/karaf/blob/karaf-4.2.1/assemblies/features/base/src/main/resources/resources/etc/org.ops4j.pax.logging.cfg).
> # Try setting the log level of a package that contains numbers using {{log:set}}:
> {code}
> karaf@root()> log:get
> Logger                  │ Level
> ────────────────────────┼──────
> ROOT                    │ INFO
> audit                   │ TRACE
> org.apache.aries.spifly │ WARN
> org.apache.sshd         │ INFO
> karaf@root()> log:get org.ops4j.pax.web
> INFO
> karaf@root()> log:set WARN org.ops4j.pax.web
> karaf@root()> log:get org.ops4j.pax.web
> INFO
> karaf@root()> log:get
> Logger                  │ Level
> ────────────────────────┼──────
> ROOT                    │ INFO
> audit                   │ TRACE
> org.apache.aries.spifly │ WARN
> org.apache.sshd         │ INFO
> {code}
> _etc/org.ops4j.pax.logging.cfg_ does appear to be updated correctly with two new lines:
> {code}
> log4j2.logger.org_ops4j_pax_web.level = WARN
> log4j2.logger.org_ops4j_pax_web.name = org.ops4j.pax.web
> {code}
> I'm not sure if the log level is not set or if the `log:get` command just reports the level incorrectly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)