In C ++, there is no standard de facto logging tool. In my experience, stores are folding their own. This poses some problem, however, when trying to create reusable software components. If everything in your system depends on the logging component, this makes the software less reusable, basically forcing any downstream projects to use your logging system along with the components that they really want.
IOC (dependency injection) does not really help with the problem, since your components will have to depend on the registration paragraph. Logging components can add file I / O dependencies, startup mechanisms, and other possible unwanted dependencies.
Does dependence on your own logging structure increase the ability to reuse a component?
source
share