浏览代码

set logging levels for dev and prod

tags/v0.1.3
Robin Thoni 8 年前
父节点
当前提交
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": {

正在加载...
取消
保存