Info
Version: | 1.0.1 |
Author(s): | VMware |
Last Update: | Monday, April 20, 2020 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/vmware/vmware-eventlog-stream-console |
NuGet Url: | https://www.nuget.org/packages/VMware.EventLog.Stream.Console |
Install
Install-Package VMware.EventLog.Stream.Console
dotnet add package VMware.EventLog.Stream.Console
paket add VMware.EventLog.Stream.Console
VMware.EventLog.Stream.Console Download (Unzip the "nupkg" after downloading)
Dependencies
- Lib.Harmony(>= 1.2.0.1)
There are different options for externalizing these logs on the cloud. One option is to refactor all calls to ILogger.Log or Console.WriteLine while another option is to use Microsoft's log montior (https://github.com/microsoft/windows-container-tools/tree/master/LogMonitor).
This NuGet package offers an additional option which is code-free and minimally invasive.
By installing this package to an ASP Framework 4.x app, all calls to the System.Diagnostics.EventLog.WriteEvent and System.Diagnostics.EventLog.WriteEntry static methods will instead write to console. This behavior will extend only to your app domain.
The VMware.EventLog.Stream.Console NuGet package leverages the Lib.Harmony NuGet package.