In C# should my Common.Logging logger be an instance member or static?
问题 Looking a project that uses Common.Logging for .NET, I noticed that some classes declare the logger instance as a class static member. For instance: public class HelloJob : IJob { private static ILog _log = LogManager.GetLogger(typeof(HelloJob)); public HelloJob() { } public virtual void Execute(IJobExecutionContext context) { _log.Info(string.Format("Hello World! - {0}", System.DateTime.Now.ToString("r"))); } } And in other classes the logger is declared as an instance member: public class