I've a bunch of small services that share some common packages like Logger
, Configuration
and Net
. And I wrote each package in separated project.
The issue is that my Logger
needs package Configuration
for set up. And my Configuration
(not solely used by Logger
) wants to write output log when necessary.
Therefore, I've circular dependency flaw Logger
-->Configuration
, Configuration
-->Logger
.
How can I redesign this code?