Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-6252

make it easier to enable feature specific loggers

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      I need to be able to enable all logging or only certain loggers related to a specific feature of Nexus. For example when debugging Smart Proxy connections in a subscriber there is a certain list of loggers that need to be made DEBUG. In the subscriber, this is mostly the same but not necessarily. Also, enabling org.sonatype.nexus.smartproxy=DEBUG can still be too verbose. There could be as many as 5-10 different loggers that need to be adjusted specifically in order to get useful output that does not cause too much log noise.

      Simply ROOT DEBUG is not good enough for a production environment. This will quickly fill the disk of a busy system. It can fill so quickly we are often left not being able to get more information to help a customer because they refuse to enable more verbose logging at risk of destabilizing the system.

      A user should not care as much about fine grained logger names. Instead they should be able to perform action such as "Enable Smart Proxy Debug Logging" with a single action instead of 1) asking support to tell them all the logger names that are relevant 2) adding all the missing logger names and hoping for no typos 3) setting the levels correctly 4) resetting the loggers when done and hoping they didn't forget any.

      A plugin component should explicitly declare and add to the default loggers list the logger names which are specific to that plugin. Tests could be added to protect from package name changes making this list obsolete.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title