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
| using System; | |
| using Microsoft.Owin; | |
| using NLog; // Using NLog in this example | |
| namespace com.github.gist.coenm | |
| { | |
| public static class LogRequestResponseHelper | |
| { | |
| public static void LogDebugResponse(Logger logger, IOwinResponse response) | |
| { |
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
| builder | |
| .UseSerilog((ctx, _, logConfig) => | |
| { | |
| logConfig.ReadFrom.Configuration(ctx.Configuration, "Log"); | |
| }, writeToProviders: true) | |
| .ConfigureServices((ctx, services) => | |
| { | |
| services.AddOpenTelemetry() | |
| .ConfigureResource(res => { | |
| ... |