From d5e2464e095d0f9d6e1638fc0af96fbcab4a3f10 Mon Sep 17 00:00:00 2001 From: XiangYang Date: Thu, 24 Oct 2019 22:51:09 +0800 Subject: [PATCH] fix:Nlog undeclared prefix --- src/Logbert/Logging/LogMessageLog4Net.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Logbert/Logging/LogMessageLog4Net.cs b/src/Logbert/Logging/LogMessageLog4Net.cs index e5d0b70..9d2d985 100644 --- a/src/Logbert/Logging/LogMessageLog4Net.cs +++ b/src/Logbert/Logging/LogMessageLog4Net.cs @@ -467,6 +467,8 @@ static LogMessageLog4Net() XmlNamespaceManager namespaceManager = new XmlNamespaceManager(new NameTable()); + namespaceManager.AddNamespace("nlog", "urn:ignore"); + namespaceManager.AddNamespace( "log4j" , "http://jakarta.apache.org/log4j/");