skip to Main Content

Setting up Swagger for ASP.NET

Adding swagger to blank ASP.NET+React solution Good day. I am creating just a blank solution by codegenerator by command dotnet new react -o MyReactApp and I am trying to add Swagger here. So I installed nugets and edited Program.cs. OS…

VIEW QUESTION

Asp.net – Is it possible to configure serilog to accept specifc logging, even if the severity is below the sink's minimum severity?

This is how my logging in Asp.Net is configured: _ = pServiceCollection.AddSerilog((serviceProvider, loggerConfiguration) => loggerConfiguration.ReadFrom.Configuration(pConfiguration) .ReadFrom.Services(serviceProvider) .Enrich.FromLogContext() .WriteTo.Console(outputTemplate: LogMessageTemplate, formatProvider: CultureInfo.InvariantCulture) .WriteTo.File(path: logFilePath, outputTemplate: LogMessageTemplate, rollingInterval: RollingInterval.Day, retainedFileCountLimit: 30, formatProvider: CultureInfo.InvariantCulture) .WriteTo.EventLog(source: CommonConstants.ProductName, manageEventSource: true, restrictedToMinimumLevel: LogEventLevel.Warning, formatProvider: CultureInfo.InvariantCulture)); Only…

VIEW QUESTION
Back To Top
Search