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
- relates to
-
HSTTWO-1709 Deprecate HstSite#getMount
- Closed