Skip to content

Custom logging provider in Asp.Net Core that write logs to Analogy Log Server

License

Notifications You must be signed in to change notification settings

Analogy-LogViewer/Analogy.AspNetCore.LogProvider

Repository files navigation

Analogy.AspNetCore.LogProvider

.NET Core Desktop Issues GitHub closed issues License Nuget

Custom logging provider in Asp.Net Core that write logs to Analogy Log Server

Usage

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"
      });
     }

About

Custom logging provider in Asp.Net Core that write logs to Analogy Log Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages