Which pattern to use for logging? Dependency Injection or Service Locator?

后端 未结 9 938
别那么骄傲
别那么骄傲 2021-01-31 15:51

Consider this scenario. I have some business logic that now and then will be required to write to a log.

interface ILogger
{
    void Log(string stuff);
}

inte         


        
9条回答
提交回复
热议问题