You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.7 KiB
39 lines
1.7 KiB
5 days ago
|
{
|
||
|
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
||
|
|
||
|
"Logging": {
|
||
|
"LogLevel": {
|
||
|
"Default": "Information",
|
||
|
"Microsoft.AspNetCore": "Warning",
|
||
|
"Microsoft.EntityFrameworkCore": "Information"
|
||
|
},
|
||
|
"File": {
|
||
|
"Enabled": false, // 启用文件日志
|
||
|
"FileName": "logs/{0:yyyyMMdd}_{1}.log", // 日志文件
|
||
|
"Append": true, // 追加覆盖
|
||
|
// "MinimumLevel": "Information", // 日志级别
|
||
|
"FileSizeLimitBytes": 10485760, // 10M=10*1024*1024
|
||
|
"MaxRollingFiles": 30 // 只保留30个文件
|
||
|
},
|
||
|
"Database": {
|
||
|
"Enabled": true, // 启用数据库日志
|
||
|
"MinimumLevel": "Information"
|
||
|
},
|
||
|
"ElasticSearch": {
|
||
|
"Enabled": false, // 启用ES日志
|
||
|
"ServerUris": [ "http://dilon:123456@192.168.1.100:9200" ], // 地址
|
||
|
"DefaultIndex": "adminnet" // 索引
|
||
|
},
|
||
|
"Monitor": {
|
||
|
"GlobalEnabled": true, // 启用全局拦截日志
|
||
|
"IncludeOfMethods": [], // 拦截特定方法,当GlobalEnabled=false有效
|
||
|
"ExcludeOfMethods": [], // 排除特定方法,当GlobalEnabled=true有效
|
||
|
"BahLogLevel": "Information", // Oops.Oh 和 Oops.Bah 业务日志输出级别
|
||
|
"WithReturnValue": true, // 是否包含返回值,默认true
|
||
|
"ReturnValueThreshold": 500, // 返回值字符串阈值,默认0全量输出
|
||
|
"JsonBehavior": "None", // 是否输出Json,默认None(OnlyJson、All)
|
||
|
"JsonIndented": false, // 是否格式化Json
|
||
|
"UseUtcTimestamp": false // 时间格式UTC、LOCAL
|
||
|
}
|
||
|
}
|
||
|
}
|