Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.54 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.54 KB

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