使用web服务NLOG目标 https://github.com/nlog/NLog/wiki/WebService-target 我得到一个401当目标API使用的是Windows身份验证。 Error Error when sending to Webservice: ws Exception: System.Net.WebException: The remote server return
我真的很努力地获得一个使用NLog的基本自定义目标。 的Program.cs using NLog;
using NLog.Targets;
namespace NLogTestConsole
{
class Program
{
private static Logger logger = null;
static Program()
我发现问题是什么。代码没有问题。我在查询中写入列名不正确的问题。我不知道我是如何错过这样的事情,但感谢你的帮助。如果需要,您可以使用NLog的代码。 (我试图与NLOG登录到AOP。我工作的Winform和使用Postsharp。NLOG代码为ExceptionLoggingAttribute.cs这个代码在Form1.cs研究,但上述方案不工作,请救救我!) AOP内部 namespace Lo