![]() net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-android net6.0-android was computed. net5.0-windows net5.0-windows was computed. Versions Compatible and additional computed target framework versions. ![]() = true įor further configuration: :fast_forward: Running the Tests: :test_tube: LicenseĮverything is welcome! □ See the contribution guidelines for details. Enable middleware to serve log-ui (HTML, JS, CSS, etc.). Note: call to the UseSerilogUi middleware must be placed after any Authentication and Authorization middleware, otherwise the authentication may not work: public void Configure(IApplicationBuilder app, IWebHostEnvironment env) ![]() In the Startup.Configure method, enable the middleware to serve the log UI page. Options.UseSqlServer("ConnectionString", "LogTableName")) ![]() each provider exposes extension methods to configure. Install-Package Serilog.UI.ElasticSearcProviderĪdd AddSerilogUi() to IServiceCollection in your Startup.ConfigureServices method: public void ConfigureServices(IServiceCollection services) Serilog.UI.ElasticSearchProvider ĭotnet add package Serilog.UI.ElasticSearchProvider Install-Package Serilog.UI.MongoDbProvider Install-Package Serilog.UI.PostgreSqlProviderĭotnet add package Serilog.UI.MongoDbProvider Install-Package Serilog.UI.MsSqlServerProviderĭotnet add package Serilog.UI.MySqlProviderĭotnet add package Serilog.UI.PostgreSqlProvider Install one of the available providers, based upon your sink: Providerĭotnet add package Serilog.UI.MsSqlServerProvider ![]() Install the Serilog.UI NuGet package: # using dotnet cli Read the Wiki □ Quick Start □ Nuget packages installation A simple Serilog log viewer for the following sinks: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |