Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple Serilog log viewer UI for several sinks.

License

NotificationsYou must be signed in to change notification settings

serilog-contrib/serilog-ui

Repository files navigation

DotNET-buildDotNET Coverage

JS-buildCoverage

A simple Serilog log viewer for the following sinks:

  • Serilog.Sinks.MSSqlServer (Nuget)
  • Serilog.Sinks.MySql (Nuget) and Serilog.Sinks.MariaDBNuget
  • Serilog.Sinks.Postgresql (Nuget) and Serilog.Sinks.Postgresql.Alternative (Nuget)
  • Serilog.Sinks.MongoDB (Nuget)
  • Serilog.Sinks.ElasticSearch (Nuget)
  • Serilog.Sinks.RavenDB (Nuget)
  • Serilog.Sinks.SQLite (Nuget)

Read theWiki 📘

Quick Start

Nuget packages installation

Install theSerilog.UINuGet package:

# using dotnet clidotnet add package Serilog.UI# using package manager:Install-Package Serilog.UI

Install one or more of the available providers, based upon your sink(s):

Providerinstall: dotnetinstall: pkg manager
Serilog.UI.MsSqlServerProvider [NuGet]dotnet add package Serilog.UI.MsSqlServerProviderInstall-Package Serilog.UI.MsSqlServerProvider
Serilog.UI.MySqlProvider [NuGet]dotnet add package Serilog.UI.MySqlProviderInstall-Package Serilog.UI.MySqlProvider
Serilog.UI.PostgreSqlProvider [NuGet]dotnet add package Serilog.UI.PostgreSqlProviderInstall-Package Serilog.UI.PostgreSqlProvider
Serilog.UI.MongoDbProvider [NuGet]dotnet add package Serilog.UI.MongoDbProviderInstall-Package Serilog.UI.MongoDbProvider
Serilog.UI.ElasticSearchProvider [NuGet]dotnet add package Serilog.UI.ElasticSearchProviderInstall-Package Serilog.UI.ElasticSearchProvider
Serilog.UI.RavenDbProvider [NuGet]dotnet add package Serilog.UI.RavenDbProviderInstall-Package Serilog.UI.RavenDbProvider
Serilog.UI.SQLiteProvider [NuGet]dotnet add package Serilog.UI.SQLiteProviderInstall-Package Serilog.UI.SQLiteProvider

DI registration

AddAddSerilogUi() toIServiceCollection in yourStartup.ConfigureServices method:

publicvoidConfigureServices(IServiceCollectionservices){// Register the serilog UI servicesservices.AddSerilogUi(options=>options// each provider exposes extension methods to configure.// example with MSSqlServerProvider:.UseSqlServer(opts=>opts.WithConnectionString("YOUR_CONNECTION_STRING").WithTable("YOUR_TABLE")));}

In theStartup.Configure method or on the WebApplication builder, enable the middleware to serve the log UI page.

NOTE: call to theUseSerilogUi middleware must be placedafter any Authentication and Authorization middleware!

publicvoidConfigure(IApplicationBuilderapp,IWebHostEnvironmentenv){(...)app.UseRouting();app.UseAuthentication();app.UseAuthorization();// Enable middleware to serve log-ui (HTML, JS, CSS, etc.).app.UseSerilogUi(opts=>[...]);(...)}

For further configuration:

Do you want to test the package on-the-fly? Try out thesamples, with no configuration required!

Issues and Contribution

Everything is welcome! 🏆 See thecontribution guidelines for details.

For details on running the project, start reading fromDevelop.

License

SeeLICENSE.

Project Sponsors

Contributors

Mohsen Esmailpour
Mohsen Esmailpour

💻📆⚠️
Matteo Gregoricchio
Matteo Gregoricchio

💻📖⚠️
sommmen
sommmen

💻
Israel Gómez de Celis
Israel Gómez de Celis

💻
Osama Bashir
Osama Bashir

💻
Ricardo
Ricardo

💻
Caleb Hanson
Caleb Hanson

💻
Aleksei
Aleksei

💻
chaadfh
chaadfh

💻
Phill Duffy
Phill Duffy

💻
Uthman
Uthman

💻
jorgevp
jorgevp

💻
Tech Garage
Tech Garage

💻

About

Simple Serilog log viewer UI for several sinks.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors14


[8]ページ先頭

©2009-2025 Movatter.jp