Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6702

Make MetricsService accessible as easily as a Logger

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Commons Metrics 1.2.0
    • commons metrics 1.2.4
    • Extensions
    • None

    Description

      Metrics are useful in all classes, not only OSGi components, so getting the MetricsService should be as useful as getting a Logger for example.

      I'll add a public MetricsServiceFactory class to our metrics module, usable like

        MetricsService ms = MetricsServiceFactory.getMetricsService(this.getClass());
      

      There's already a private MetricsServiceFactory class in that module, I'll rename that to InternalMetricsServiceFactory to avoid confusion.

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: