sql日志打印输出配置

This commit is contained in:
陈淳
2022-10-18 09:01:16 +08:00
parent 9d365dbf1e
commit dab4a092d9
20 changed files with 100 additions and 66 deletions

View File

@@ -142,6 +142,11 @@ builder.Services.AddHttpContextAccessor();
//添加缩略图
#endregion
builder.Services.AddSingleton<ThumbnailSharpInvoer>();
#region
//全局配置初始化值
#endregion
GobalModel.SqlLogEnable = Appsettings.appBool("SqlLog_Enable");
//-----------------------------------------------------------------------------------------------------------
var app = builder.Build();
#region

View File

@@ -2,8 +2,8 @@
"profiles": {
"Yi.Framework.ApiMicroservice": {
"commandName": "Project",
//开发环境根据情况是否自动启动浏览器,个人感觉开开关关比较麻烦
"launchBrowser": false,
//开发环境根据情况是否自动启动浏览器
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},

View File

@@ -9,6 +9,8 @@
},
"AllowedHosts": "*",
"SqlLog_Enable": false,
"Consul_Enabled": false,
"Apollo_Enabled": false,
"HealthCheck_Enabled": false,

View File

@@ -9,6 +9,8 @@
},
"AllowedHosts": "*",
"SqlLog_Enable": false,
"Consul_Enabled": false,
"DbSeed_Enabled": false,
"Apollo_Enabled": false,

View File

@@ -9,6 +9,8 @@
},
"AllowedHosts": "*",
"SqlLog_Enable": false,
"Consul_Enabled": false,
"DbSeed_Enabled": false,
"Apollo_Enabled": false,