File tree 2 files changed +7
-0
lines changed 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ public string[] GetJsonBlacklistRequest()
61
61
62
62
public Action < IServiceCollection , SerilogConfiguration > SetupSerilog { get ; set ; }
63
63
64
+ public string [ ] IgnoredRoutes { get ; set ; }
65
+
64
66
public string GetInformationTitle ( )
65
67
{
66
68
if ( string . IsNullOrWhiteSpace ( InformationTitle ) )
Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ public void ConfigureServices(IServiceCollection services)
115
115
ignoredRoutes . Add ( HealthcheckkMiddlewareExtension . GetFullPath ( Api . ApiSettings , Api . HealthcheckSettings ) ) ;
116
116
}
117
117
118
+ if ( Api . LogSettings . IgnoredRoutes ? . Count ( ) > 0 )
119
+ {
120
+ ignoredRoutes . AddRange ( Api . LogSettings . IgnoredRoutes ? . ToList ( ) ) ;
121
+ }
122
+
118
123
services . SetupSerilog ( Api . ApiSettings ? . Domain ,
119
124
Api . ApiSettings ? . Application ,
120
125
Api . LogSettings ,
You can’t perform that action at this time.
0 commit comments