Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7644

Fixing Logging Prefix/Category on several classes

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • Meridian-2015.1.0, 15.0.2
    • 16.0.0, Meridian-2015.1.1
    • Logging
    • Security Level: Default (Default Security Scheme)
    • None

    Description

      There are still several classes using the old prefix/category convention for logging after migrating to Log4j2 with SLF4.

      For this reason, the messages on those classes are not properly routed to the log.

      For example:

      private final Logger logger = LoggerFactory.getLogger("OpenNMS.Poller." + JCifsMonitor.class.getName());
      

      should be:

      private final Logger logger = LoggerFactory.getLogger(JCifsMonitor.class);
      

      Attachments

        Activity

          People

            agalue Alejandro Galue
            agalue Alejandro Galue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: