Quellcode durchsuchen

set logging levels for dev and prod

tags/v0.1.3
Robin Thoni vor 7 Jahren
Ursprung
Commit
486c34f29f
3 geänderte Dateien mit 16 neuen und 4 gelöschten Zeilen
  1. 1
    0
      .gitignore
  2. 9
    0
      WebApiUtils/appsettings.Development.json
  3. 6
    4
      WebApiUtils/appsettings.json

+ 1
- 0
.gitignore Datei anzeigen

@@ -49,3 +49,4 @@ obj
49 49
 /packages
50 50
 
51 51
 *.lock.json
52
+appsettings.Production.json

+ 9
- 0
WebApiUtils/appsettings.Development.json Datei anzeigen

@@ -1,4 +1,13 @@
1 1
 {
2
+    "Logging": {
3
+        "IncludeScopes": false,
4
+        "LogLevel": {
5
+            "Default": "Debug",
6
+            "System": "Information",
7
+            "Microsoft": "Information",
8
+            "Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory": "Information"
9
+        }
10
+    },
2 11
     "ConnectionStrings": {
3 12
         "default":  "User ID=dev;Password=dev;Host=localhost;Port=5432;Database=luticate2_utils;Pooling=true;"
4 13
     }

+ 6
- 4
WebApiUtils/appsettings.json Datei anzeigen

@@ -1,10 +1,12 @@
1 1
 {
2 2
     "Logging": {
3 3
         "IncludeScopes": false,
4
-            "LogLevel": {
5
-                "Default": "Debug",
6
-                "System": "Information",
7
-                "Microsoft": "Information"
4
+        "LogLevel": {
5
+            "Default": "Information",
6
+            "System": "Information",
7
+            "Microsoft": "Information",
8
+            "Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory": "Error",
9
+            "Microsoft.AspNetCore.Mvc.Internal.ObjectResultExecutor": "Error"
8 10
         }
9 11
     },
10 12
     "ConnectionStrings": {

Laden…
Abbrechen
Speichern