Logger wrapper best practice
问题 I want to use a nlogger in my application, maybe in the future I will need to change the logging system. So I want to use a logging facade. Do you know any recommendations for existing examples how to write those ones ? Or just give me link to some best practice in this area. 回答1: I used to use logging facades such as Common.Logging (even to hide my own CuttingEdge.Logging library), but nowadays I use the Dependency Injection pattern and this allows me to hide loggers behind my own (simple)