feat: 添加api访问日志
This commit is contained in:
@@ -50,6 +50,8 @@ public class Startup : AppStartup
|
|||||||
return string.Format(fileName, DateTime.UtcNow);
|
return string.Format(fileName, DateTime.UtcNow);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
services.AddMonitorLogging();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
||||||
"Logging": {
|
"Logging": {
|
||||||
|
"Monitor": {
|
||||||
|
"GlobalEnabled": true
|
||||||
|
},
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
"Microsoft.AspNetCore": "Warning",
|
"Microsoft.AspNetCore": "Warning",
|
||||||
|
|||||||
Reference in New Issue
Block a user