mirror of https://github.com/abpframework/abp.git
3 changed files with 40 additions and 10 deletions
@ -0,0 +1,21 @@ |
|||
namespace Volo.Abp.AspNetCore.Serilog |
|||
{ |
|||
public class AbpAspNetCoreSerilogEnrichersOptions |
|||
{ |
|||
public string TenantIdEnricherPropertyName { get; set; } |
|||
|
|||
public string UserIdEnricherPropertyName { get; set; } |
|||
|
|||
public string ClientIdEnricherPropertyName { get; set; } |
|||
|
|||
public string CorrelationIdPropertyName { get; set; } |
|||
|
|||
public AbpAspNetCoreSerilogEnrichersOptions() |
|||
{ |
|||
TenantIdEnricherPropertyName = AbpSerilogEnrichersConsts.TenantIdEnricherPropertyName; |
|||
UserIdEnricherPropertyName = AbpSerilogEnrichersConsts.UserIdEnricherPropertyName; |
|||
ClientIdEnricherPropertyName = AbpSerilogEnrichersConsts.ClientIdEnricherPropertyName; |
|||
CorrelationIdPropertyName = AbpSerilogEnrichersConsts.CorrelationIdPropertyName; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
namespace Volo.Abp.AspNetCore.Serilog |
|||
{ |
|||
public class AbpSerilogEnrichersConsts |
|||
{ |
|||
public const string TenantIdEnricherPropertyName = "TenantId"; |
|||
public const string UserIdEnricherPropertyName = "UserId"; |
|||
public const string ClientIdEnricherPropertyName = "ClientId"; |
|||
public const string CorrelationIdPropertyName = "CorrelationId"; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue