Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2300

log command to list all the logging levels currently been set

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.3, 2.4.0, 3.0.0
    • Component/s: karaf-core
    • Labels:
      None

      Description

      You can use log:set to set a logging level for a logger name.

      eg

      log:set DEBUG org.apache.camel
      

      But you cannot see what has been configured, eg
      log:get

      Will only show for the root logger, which typically is INFO.

      What we need is

      log:list
      

      To show all the custom logging levels been set.
      Something alike:

      log:list
      Level            Name
      INFO             ROOT
      DEBUG            org.apache.camel
      

      Also the MBean for the log should expose a JMX operation to get this data.
      org.apache.karaf.management.mbeans.log.internal.LogMBeanImpl

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: