File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
test/Serilog.Settings.Configuration.Tests Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1351,17 +1351,19 @@ public void FilterWithIsAppliedWithCustomFilter()
1351
1351
[ InlineData ( "switch1" ) ]
1352
1352
public void TestLogLevelSwitchesCallback ( string switchName )
1353
1353
{
1354
- var json = $@ "{{
1355
- 'Serilog': {{
1356
- 'LevelSwitches': {{ '{ switchName } ': 'Information' }},
1357
- 'MinimumLevel': {{
1358
- 'Override': {{
1354
+ var json = $$ """
1355
+ {
1356
+ 'Serilog': {
1357
+ 'LevelSwitches': { '{{ switchName }} ': 'Information' },
1358
+ 'MinimumLevel': {
1359
+ 'Override': {
1359
1360
'System': 'Warning',
1360
1361
'System.Threading': 'Debug'
1361
- }}
1362
- }}
1363
- }}
1364
- }}" ;
1362
+ }
1363
+ }
1364
+ }
1365
+ }
1366
+ """ ;
1365
1367
1366
1368
IDictionary < string , LoggingLevelSwitch > switches = new Dictionary < string , LoggingLevelSwitch > ( ) ;
1367
1369
var readerOptions = new ConfigurationReaderOptions { OnLevelSwitchCreated = ( name , levelSwitch ) => switches [ name ] = levelSwitch } ;
You can’t perform that action at this time.
0 commit comments