Skip to content

Commit 2217dfb

Browse files
committed
Update readmi file.
1 parent 1044211 commit 2217dfb

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ public void ConfigureServices(IServiceCollection services)
3333
}
3434
```
3535

36+
If you have more than one log table on the database, you add them:
37+
```csharp
38+
public void ConfigureServices(IServiceCollection services)
39+
{
40+
services.AddSerilogUi(options => options
41+
.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"), "Logs")
42+
.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"), "Logs2")
43+
);
44+
}
45+
```
46+
This feature is not supported by NoSQL data providers and limited to `MsSqlServerProvider`, `MySqlProvider` and `PostgreSqlProvider`.
47+
3648
In the `Startup.Configure` method, enable the middleware for serving the log UI. Place a call to the `UseSerilogUi` middleware after authentication and authorization middlewares, otherwise authentication may not work for you:
3749

3850
```csharp

samples/SampleWebApp/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Microsoft.Extensions.Configuration;
66
using Microsoft.Extensions.DependencyInjection;
77
using Microsoft.Extensions.Hosting;
8-
using Microsoft.IdentityModel.Tokens;
98
using SampleWebApp.Authentication.Jwt;
109
using SampleWebApp.Data;
1110
using SampleWebApp.Services.HostedServices;

src/Serilog.Ui.MongoDbProvider/Serilog.Ui.MongoDbProvider.nuspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<license type="expression">MIT</license>
1111
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1212
<description>MongoDB data provider for Serilog UI.</description>
13-
<readme>docs\README.md</readme>
1413
<releaseNotes></releaseNotes>
1514
<copyright></copyright>
1615
<tags>serilog serilog-ui serilog.sinks.mongodb</tags>

src/Serilog.Ui.PostgreSqlProvider/Serilog.Ui.PostgreSqlProvider.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
6-
<Version>2.1.1</Version>
6+
<Version>2.1.2</Version>
77
</PropertyGroup>
88

99
<ItemGroup>

0 commit comments

Comments
 (0)