Browse Source

set logging levels for dev and prod

tags/v0.1.3
Robin Thoni 8 years ago
parent
commit
486c34f29f
3 changed files with 16 additions and 4 deletions
  1. 1
    0
      .gitignore
  2. 9
    0
      WebApiUtils/appsettings.Development.json
  3. 6
    4
      WebApiUtils/appsettings.json

+ 1
- 0
.gitignore View File

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

+ 9
- 0
WebApiUtils/appsettings.Development.json View File

@@ -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 View File

@@ -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": {

Loading…
Cancel
Save