Overview
Add a pluggable logging interface with slog.Logger for components. This would add more control over component-level logging, irrespective of the global logger. (passed via higher-level abstraction)
Scope
Remove existing fmt statements. Accept *slog.Logger for each component with precedence order that prioritizes component-specific logging configuration over global one, update constructors, and use within the code wherever applicable.
Overview
Add a pluggable logging interface with
slog.Loggerfor components. This would add more control over component-level logging, irrespective of the global logger. (passed via higher-level abstraction)Scope
Remove existing
fmtstatements. Accept*slog.Loggerfor each component with precedence order that prioritizes component-specific logging configuration over global one, update constructors, and use within the code wherever applicable.