Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17440

Add a deprecation logger

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4
    • Component/s: Infrastructure
    • Tags:
    • Sprint:
      nxNag Sprint 7.3.7
    • Story Points:
      0

      Description

      This logger has the following features:

      • log using warn level
      • can be activated only when dev mode is set
      • can hold the version from which deprecation starts

      Sample usage:

      String message = String.format("Resource '%s' on component %s should now be contributed to extension "
              + "point '%s': a compatibility registration was performed but it may not be " + "accurate.",
              r.getName(), contributor.getName(), WR_XP);
      DeprecationLogger.log(message, "7.4");
      Framework.getRuntime().getWarnings().add(message);
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.