Custom logging provider in Asp.Net Core that write logs to Analogy Log Server
Add Nuget package Analogy.AspNetCore.LogProvider and then add to the Configure method the following in te Startup.cs
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddAnalogyLogger(new AnalogyLoggerConfiguration
{
LogLevel = LogLevel.Trace,
EventId = 0,
AnalogyServerUrl = "http://localhost:6000"
});
}