Created
June 25, 2021 01:16
-
-
Save MahdiKarimipour/be2d4e297c472a31bf9cb721559e0751 to your computer and use it in GitHub Desktop.
Integrating Nlogger to Asp.NET Middleware Pipleline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Configure( | |
IApplicationBuilder app, | |
IWebHostEnvironment env, | |
IApiVersionDescriptionProvider provider, | |
ILoggerFactory loggerFactory, | |
UserContext userContext, | |
RequestContext requestContext) | |
{ | |
loggerFactory.AddProvider( | |
new LoggerProvider(new NloggerConfiguration(), | |
userContext, | |
requestContext)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment