Abp模块
abp
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.
 
 
 
 
 
guotianliang 66e2cc683b sync auding long module 3 years ago
..
Sanhe/Abp/AuditLogging/Serilog/Elasticsearch sync auding long module 3 years ago
FodyWeavers.xml add auditing-logging 3 years ago
README.md add auditing-logging 3 years ago
Sanhe.Abp.Logging.Serilog.Elasticsearch.csproj add auditing-logging 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}"
      }
    }
  }
}