Просмотр исходного кода

set logging levels for dev and prod

tags/v0.1.3
Robin Thoni 8 лет назад
Родитель
Сommit
486c34f29f
3 измененных файлов: 16 добавлений и 4 удалений
  1. 1
    0
      .gitignore
  2. 9
    0
      WebApiUtils/appsettings.Development.json
  3. 6
    4
      WebApiUtils/appsettings.json

+ 1
- 0
.gitignore Просмотреть файл

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

+ 9
- 0
WebApiUtils/appsettings.Development.json Просмотреть файл

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 Просмотреть файл

1
 {
1
 {
2
     "Logging": {
2
     "Logging": {
3
         "IncludeScopes": false,
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
     "ConnectionStrings": {
12
     "ConnectionStrings": {

Загрузка…
Отмена
Сохранить