Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 登录ASP.NET Core时,应该用什么替换System.Diagnostics.EventLog_C#_Logging_Asp.net Core - Fatal编程技术网

C# 登录ASP.NET Core时,应该用什么替换System.Diagnostics.EventLog

C# 登录ASP.NET Core时,应该用什么替换System.Diagnostics.EventLog,c#,logging,asp.net-core,C#,Logging,Asp.net Core,当瞄准dnxcore50时,我似乎没有得到可靠的旧事件日志,这是有充分理由的,因为它只在Windows上 "The type or namespace name 'EventLog' does not exist in the namespace 'System.Diagnostics'" NET可移植性报告没有建议,是否有新的推荐的dot NET core日志记录策略

当瞄准
dnxcore50
时,我似乎没有得到可靠的旧事件日志,这是有充分理由的,因为它只在Windows上

"The type or namespace name 'EventLog' does not exist in the namespace 'System.Diagnostics'"
NET可移植性报告没有建议,是否有新的推荐的dot NET core日志记录策略