Skip to content

Commit 5a0ee47

Browse files
authored
Update README.md
1 parent 2f11021 commit 5a0ee47

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# serilog-ui
2-
A simple log viewer to see logs saved by [Serilog.Sinks.MSSqlServer](https://github.com/serilog/serilog-sinks-mssqlserver).
2+
A simple log viewer to see logs saved by [Serilog.Sinks.MSSqlServer](https://github.com/serilog/serilog-sinks-mssqlserver) (other sinks will be added in the future).
33

44
![serilog ui](https://raw.githubusercontent.com/mo-esmp/serilog-ui/master/assets/serilog-ui.jpg)
55

@@ -15,13 +15,13 @@ dotnet add package Serilog.UI
1515
dotnet add package Serilog.UI.MsSqlServerProvider
1616
```
1717

18-
**Then**, add `UseSerilogUi()` to `IServiceCollection` in `ConfigureServices` method:
18+
Then, add `UseSerilogUi()` to `IServiceCollection` in `ConfigureServices` method:
1919

2020
```csharp
2121
public void ConfigureServices(IServiceCollection services)
2222
{
2323
var mvcBuilder = services.AddControllersWithViews();
24-
services.AddSerilogUi(mvcBuilder, options => options.UseSqlServer("ConnectionString", "Logs"));
24+
services.AddSerilogUi(mvcBuilder, options => options.UseSqlServer("ConnectionString", "LogTableName"));
2525
.
2626
.
2727
.
@@ -38,7 +38,7 @@ public void ConfigureServices(IServiceCollection services)
3838
authOptions.Usernames = new[] { "User1", "User2" };
3939
authOptions.Roles = new[] { "AdminRole" };
4040
})
41-
.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"), "Logs"));
41+
.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"), "LogTableName"));
4242
.
4343
.
4444
.
@@ -48,3 +48,4 @@ Only `User1` and `User2` or users with `AdminRole` role can view logs.
4848
## Limitation
4949
* Log url `/logs` is fix and cannot be changed
5050
* Log viewer only works with MVC so you have to register views `services.AddControllersWithViews();` and also add default route `endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}");`
51+
* Additional columns are not supported and only main columns can be retrieved

0 commit comments

Comments
 (0)