.net桌面程序或者控制台程序使用NLog时的注意事项
Nuget添加NLog

添加nlog.config文件,并选择属性->始终复制

不选择始终复制,编译后nlog.config是没有的。
具体使用:
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
Nuget添加NLog

添加nlog.config文件,并选择属性->始终复制

不选择始终复制,编译后nlog.config是没有的。
具体使用:
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();