This is a follow up to #28670 and supersedes #28648.

Since LoggingCacheErrorHandler was only recently introduced in 5.3.16, we have decided to completely revise its internals (protected API) in 5.3.x while retaining the current public API. See comments in #28648 for details.