Skip to content

Commit 87274de

Browse files
Adjusting logs and settings configuration
1 parent 61e539f commit 87274de

2 files changed

Lines changed: 51 additions & 8 deletions

File tree

src/Dotnet6.GraphQL4.Store.WebAPI/appsettings.Development.json

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,51 @@
44
"MaxSecondsRetryDelay": 5,
55
"ErrorNumbersToAdd": []
66
},
7-
"TransactionsOptions": {
7+
"TransactionOptions": {
88
"IsolationLevel": "ReadCommitted"
99
},
1010
"HealthChecksPatterns": {
1111
"Health": "/health",
1212
"Liveness": "/health/live",
13-
"Readiness": "/health/ready",
14-
"UI": "/healthz"
13+
"Readiness": "/health/ready"
1514
},
1615
"Serilog": {
1716
"MinimumLevel": {
18-
"Default": "Debug",
17+
"Default": "Information",
1918
"Override": {
19+
"Default": "Information",
2020
"Microsoft": "Information",
21+
"Microsoft.AspNetCore.HttpLogging": "Information",
2122
"Microsoft.Hosting.Lifetime": "Information"
2223
}
24+
},
25+
"WriteTo": [
26+
{
27+
"Name": "Console",
28+
"Args": {
29+
"Theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console"
30+
}
31+
}
32+
],
33+
"Enrich": [
34+
"FromLogContext",
35+
"WithMachineName",
36+
"WithThreadId"
37+
]
38+
},
39+
"MySettings": {
40+
"StringSetting": "My Value",
41+
"IntSetting": 23,
42+
"AnEnum": "Lots",
43+
"ListOfValues": ["Value1", "Value2"],
44+
"Dict": {
45+
"FirstKey": {
46+
"Name": "First Class",
47+
"IsEnabled": false
48+
},
49+
"SecondKey": {
50+
"Name": "Second Class"
51+
}
2352
}
2453
}
2554
}

src/Dotnet6.GraphQL4.Store.WebAPI/appsettings.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,37 @@
77
"MaxSecondsRetryDelay": 5,
88
"ErrorNumbersToAdd": []
99
},
10-
"TransactionsOptions": {
10+
"TransactionOptions": {
1111
"IsolationLevel": "ReadCommitted"
1212
},
1313
"HealthChecksPatterns": {
1414
"Health": "/health",
1515
"Liveness": "/health/live",
16-
"Readiness": "/health/ready",
17-
"UI": "/healthz"
16+
"Readiness": "/health/ready"
1817
},
1918
"Serilog": {
2019
"MinimumLevel": {
2120
"Default": "Information",
2221
"Override": {
22+
"Default": "Information",
2323
"Microsoft": "Information",
24+
"Microsoft.AspNetCore.HttpLogging": "Information",
2425
"Microsoft.Hosting.Lifetime": "Information"
2526
}
26-
}
27+
},
28+
"WriteTo": [
29+
{
30+
"Name": "Console",
31+
"Args": {
32+
"Formatter": "Serilog.Formatting.Elasticsearch.ElasticsearchJsonFormatter, Serilog.Formatting.Elasticsearch"
33+
}
34+
}
35+
],
36+
"Enrich": [
37+
"FromLogContext",
38+
"WithMachineName",
39+
"WithThreadId"
40+
]
2741
},
2842
"AllowedHosts": "*"
2943
}

0 commit comments

Comments
 (0)