-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2597 Refactor AbpAspNetCoreSerilogOptions
- Loading branch information
Showing
7 changed files
with
47 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
...bp.AspNetCore.Serilog/Volo/Abp/AspNetCore/Serilog/AbpAspNetCoreSerilogEnrichersOptions.cs
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...bp/AspNetCore/Serilog/AbpSerilogModule.cs → ...ore/Serilog/AbpAspNetCoreSerilogModule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
using Volo.Abp.AspNetCore; | ||
using Volo.Abp.Modularity; | ||
using Volo.Abp.MultiTenancy; | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
...rc/Volo.Abp.AspNetCore.Serilog/Volo/Abp/AspNetCore/Serilog/AbpAspNetCoreSerilogOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace Volo.Abp.AspNetCore.Serilog | ||
{ | ||
public class AbpAspNetCoreSerilogOptions | ||
{ | ||
public AllEnricherPropertyNames EnricherPropertyNames { get; } = new AllEnricherPropertyNames(); | ||
|
||
public class AllEnricherPropertyNames | ||
{ | ||
/// <summary> | ||
/// Default value: "TenantId". | ||
/// </summary> | ||
public string TenantId { get; set; } = "TenantId"; | ||
|
||
/// <summary> | ||
/// Default value: "UserId". | ||
/// </summary> | ||
public string UserId { get; set; } = "UserId"; | ||
|
||
/// <summary> | ||
/// Default value: "ClientId". | ||
/// </summary> | ||
public string ClientId { get; set; } = "ClientId"; | ||
|
||
/// <summary> | ||
/// Default value: "CorrelationId". | ||
/// </summary> | ||
public string CorrelationId { get; set; } = "CorrelationId"; | ||
} | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
.../src/Volo.Abp.AspNetCore.Serilog/Volo/Abp/AspNetCore/Serilog/AbpSerilogEnrichersConsts.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters