I need a way to write to Windows' event viewer in my app that's using dnx. But, the EventLog
class isn't available in the System.Diagnostics
namespace so I'm stuck. Is there any other way to write to the EventViewer?
Add from NuGet
Microsoft.Extensions.Logging.EventLog
Version 2.1.1
CM> Install-Package Microsoft.Extensions.Logging.EventLog -Version 2.1.1
Include the namespace Microsoft.Extensions.Logging.EventLog
in the Program.cs
file
This resolved my problem.