You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,24 @@
1
1
# serilog-ui
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).
2
+
A simple log viewer to see logs saved by [Serilog.Sinks.MSSqlServer](https://github.com/serilog/serilog-sinks-mssqlserver)or [Serilog.Sinks.Postgresql](https://github.com/b00ted/serilog-sinks-postgresql)(other sinks will be added in the future).
Install the _Serilog.UI_[NuGet package](https://www.nuget.org/packages/Serilog.UI) and _Serilog.Ui.MsSqlServerProvider_[NuGet package](https://www.nuget.org/packages/Serilog.Ui.MsSqlServerProvider)
6
+
Install the _Serilog.UI_[NuGet package](https://www.nuget.org/packages/Serilog.UI) and _Serilog.Ui.MsSqlServerProvider_[NuGet package](https://www.nuget.org/packages/Serilog.Ui.MsSqlServerProvider):
7
7
8
8
```powershell
9
9
Install-Package Serilog.UI
10
+
```
11
+
12
+
Then based on your databasbe install a provider, _Serilog.Ui.MsSqlServerProvider_[NuGet package](https://www.nuget.org/packages/Serilog.Ui.MsSqlServerProvider):
13
+
14
+
```powershell
10
15
Install-Package Serilog.UI.MsSqlServerProvider
11
16
```
12
-
or
13
-
```shell
14
-
dotnet add package Serilog.UI
15
-
dotnet add package Serilog.UI.MsSqlServerProvider
17
+
18
+
or _Serilog.Ui.PostgreSqlProvider_[NuGet package](https://www.nuget.org/packages/Serilog.Ui.PostgreSqlProvider):
19
+
20
+
```powershell
21
+
Install-Package Serilog.Ui.PostgreSqlProvider
16
22
```
17
23
18
24
Then, add `UseSerilogUi()` to `IServiceCollection` in `ConfigureServices` method:
@@ -22,6 +28,8 @@ public void ConfigureServices(IServiceCollection services)
0 commit comments