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.
|
3 years ago | |
---|---|---|
.. | ||
Sanhe/Abp/AuditLogging/Serilog/Elasticsearch | 3 years ago | |
FodyWeavers.xml | 3 years ago | |
README.md | 3 years ago | |
Sanhe.Abp.Logging.Serilog.Elasticsearch.csproj | 3 years ago |
README.md
LINGYUN.Abp.Logging.Serilog.Elasticsearch
ILoggingManager 接口的ES实现, 从ES中检索日志信息
模块引用
[DependsOn(typeof(AbpLoggingSerilogElasticsearchModule))]
public class YouProjectModule : AbpModule
{
// other
}
配置项
- AbpLoggingSerilogElasticsearchOptions.IndexFormat 必须和Serilog配置项中的IndexFormat相同,否则无法定位到正确的索引
appsettings.json
{
"Logging": {
"Serilog": {
"Elasticsearch": {
"IndexFormat": "logstash-{0:yyyy.MM.dd}"
}
}
}
}