Bläddra i källkod

set logging levels for dev and prod

tags/v0.1.3
Robin Thoni 8 år sedan
förälder
incheckning
486c34f29f
3 ändrade filer med 16 tillägg och 4 borttagningar
  1. 1
    0
      .gitignore
  2. 9
    0
      WebApiUtils/appsettings.Development.json
  3. 6
    4
      WebApiUtils/appsettings.json

+ 1
- 0
.gitignore Visa fil

49
 /packages
49
 /packages
50
 
50
 
51
 *.lock.json
51
 *.lock.json
52
+appsettings.Production.json

+ 9
- 0
WebApiUtils/appsettings.Development.json Visa fil

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
     "ConnectionStrings": {
11
     "ConnectionStrings": {
3
         "default":  "User ID=dev;Password=dev;Host=localhost;Port=5432;Database=luticate2_utils;Pooling=true;"
12
         "default":  "User ID=dev;Password=dev;Host=localhost;Port=5432;Database=luticate2_utils;Pooling=true;"
4
     }
13
     }

+ 6
- 4
WebApiUtils/appsettings.json Visa fil

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

Laddar…
Avbryt
Spara