Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-1712

Caller's location aware logging option

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.22.07, 2.23.02
    • None
    • None

    Description

      Sometimes, invocations on a deprecated method are warned by logging like the following example:

      03.08.2011 15:44:14 WARN [org.hippoecm.hst.configuration.site.HstSiteService.getMount():139] getMount on HstSite is deprecated. Fetch the Mount from the HstRequestContext#getResolvedMount instead

      However, in this case, the logging doesn't show the caller's location, but callee's location. So, it doesn't show where to fix directly.
      We already have a location aware slf4j logger implementation, Slf4jLogger, which I think is useful for this, too.
      I'd like to improve the current Slf4jLogger to allow a custom FCQN instead of a static logger wrapper's FCQN.
      Therefore, in the codes like the above example, we can use another logger by instantiating Slf4jLogger to display the caller's location.

      Attachments

        Issue Links

          Activity

            People

              wko Woonsan Ko (Inactive)
              wko Woonsan Ko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: