From f1238d7b4ac5c6745d59fccbb5dfa2286be78422 Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Wed, 21 Jul 2021 09:15:59 -0700 Subject: [PATCH] Increasing production log level (#1477) * increasing the log levels on all of the services to prevent logging successes * resetting the default logging and adding in constraints in logging in Production --- .gitignore | 1 + src/Admin/appsettings.Production.json | 17 +++++++++++++++++ src/Api/appsettings.Production.json | 17 +++++++++++++++++ src/Billing/appsettings.Production.json | 17 +++++++++++++++++ src/Events/appsettings.Production.json | 17 +++++++++++++++++ .../appsettings.Production.json | 17 +++++++++++++++++ src/Icons/appsettings.Production.json | 19 +++++++++++++++++++ src/Identity/appsettings.Production.json | 17 +++++++++++++++++ src/Notifications/appsettings.Production.json | 17 +++++++++++++++++ 9 files changed, 139 insertions(+) create mode 100644 src/Icons/appsettings.Production.json diff --git a/.gitignore b/.gitignore index c644054a4..f10b60c2e 100644 --- a/.gitignore +++ b/.gitignore @@ -216,3 +216,4 @@ bitwarden_license/src/Sso/wwwroot/css .github/test/build.secrets **/CoverageOutput/ .idea/* +**/**.swp diff --git a/src/Admin/appsettings.Production.json b/src/Admin/appsettings.Production.json index a76503564..cb6b1ee57 100644 --- a/src/Admin/appsettings.Production.json +++ b/src/Admin/appsettings.Production.json @@ -19,5 +19,22 @@ "braintree": { "production": true } + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } } } diff --git a/src/Api/appsettings.Production.json b/src/Api/appsettings.Production.json index 5fd170702..659ee2911 100644 --- a/src/Api/appsettings.Production.json +++ b/src/Api/appsettings.Production.json @@ -22,5 +22,22 @@ "bitPay": { "production": true } + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } } } diff --git a/src/Billing/appsettings.Production.json b/src/Billing/appsettings.Production.json index 38e4e3513..4ea291551 100644 --- a/src/Billing/appsettings.Production.json +++ b/src/Billing/appsettings.Production.json @@ -28,5 +28,22 @@ "production": true, "businessId": "4ZDA7DLUUJGMN" } + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } } } diff --git a/src/Events/appsettings.Production.json b/src/Events/appsettings.Production.json index 6b3530015..80b1fa36a 100644 --- a/src/Events/appsettings.Production.json +++ b/src/Events/appsettings.Production.json @@ -16,5 +16,22 @@ "internalSso": "https://sso.bitwarden.com", "internalPortal": "https://portal.bitwarden.com" } + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } } } diff --git a/src/EventsProcessor/appsettings.Production.json b/src/EventsProcessor/appsettings.Production.json index 0f530c147..1cce4a9ed 100644 --- a/src/EventsProcessor/appsettings.Production.json +++ b/src/EventsProcessor/appsettings.Production.json @@ -1,2 +1,19 @@ { + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } + } } diff --git a/src/Icons/appsettings.Production.json b/src/Icons/appsettings.Production.json new file mode 100644 index 000000000..437045a7f --- /dev/null +++ b/src/Icons/appsettings.Production.json @@ -0,0 +1,19 @@ +{ + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } + } +} diff --git a/src/Identity/appsettings.Production.json b/src/Identity/appsettings.Production.json index a76503564..22d7a0169 100644 --- a/src/Identity/appsettings.Production.json +++ b/src/Identity/appsettings.Production.json @@ -19,5 +19,22 @@ "braintree": { "production": true } + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } } } diff --git a/src/Notifications/appsettings.Production.json b/src/Notifications/appsettings.Production.json index 6b3530015..80b1fa36a 100644 --- a/src/Notifications/appsettings.Production.json +++ b/src/Notifications/appsettings.Production.json @@ -16,5 +16,22 @@ "internalSso": "https://sso.bitwarden.com", "internalPortal": "https://portal.bitwarden.com" } + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + }, + "Console": { + "IncludeScopes": true, + "LogLevel": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } } }