grpclog: refactor existing logger interfaces for better interoparability #6044
Labels
Area: Tooling
Includes anything related to Go builds, modules etc and includes Releases & Github Workflows.
P2
Type: Internal Cleanup
Refactors, etc
PrefixLogger
is a concrete type, which has a fieldlogger
of typegrpclog.DepthLoggerV2
. The former delegates all logging to the latter.grpclog.DepthLoggerV2
does not have aDebug
orV
method.The global
Logger
, which we have to end up using (to implement debug logging and verbosity checking) is of typegrpclog.LoggerV2
, and it has methods for the same. We need to refactor these interfaces a little to ensure the implementation ofPrefixLogger
can delegate all calls to its fieldlogger
instead of having to use the package globalLogger
.The text was updated successfully, but these errors were encountered: