Change log level for Microsoft.EntityFrameworkCore

pull/3032/head
Halil İbrahim Kalkan 5 years ago
parent 19c90d2c30
commit e0cfb6c50d

@ -24,6 +24,7 @@ namespace AuthServer.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "AuthServer")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace BackendAdminApp.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "BackendAdminApp")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace PublicWebSite.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "PublicWebSite")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace BackendAdminAppGateway.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "BackendAdminAppGateway")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace InternalGateway.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "InternalGateway")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace PublicWebSiteGateway.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "PublicWebSiteGateway")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace BloggingService.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "BloggingService")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace IdentityService.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "IdentityService")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace ProductService.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "ProductService")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

@ -23,6 +23,7 @@ namespace TenantManagementService.Host
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.WithProperty("Application", "TenantManagementService")
.Enrich.FromLogContext()
.WriteTo.File("Logs/logs.txt")

Loading…
Cancel
Save