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

keep all log4j settings near their main definition.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.11.3
    • Fix Version/s: 1.13.0
    • Component/s: Logging
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      In opennms-base-assembly/src/main/filtered/etc/log4j.properties the definition for "log4j.category.OpenNMS.Collectd" is around line 247.

      Near the top of the file, around line 50 there are 4 lines:

      # Turn logging down on particularly verbose packages
      log4j.logger.OpenNMS.Collectd.org.opennms.netmgt.collectd.DataCollectionConfigFactory=INFO
      log4j.logger.OpenNMS.Collectd.org.opennms.netmgt.collectd.NumericAttributeType=INFO
      log4j.logger.OpenNMS.Collectd.org.opennms.netmgt.collectd.OnmsSnmpCollection=INFO
      

      These could be moved under the log4j.category.OpenNMS.Collectd property line so that if people want to adjust Collectd level for debug purposes, they can see they might also want to adjust these other 3 properties.

      Also, should those be log4j.logger.OpenNMS.Collectd be changed to log4j.category.OpenNMS.Collectd?

        Attachments

          Activity

            People

            • Assignee:
              ronald.roskens@biworldwide.com Ron Roskens
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: