remove unnecessary config for index-format-elastic

This commit is contained in:
meysamhadeli 2022-11-20 16:23:11 +03:30
parent c97229e5ce
commit 571bf04cef

View File

@ -44,8 +44,7 @@ namespace BuildingBlocks.Logging
new ElasticsearchSinkOptions(new Uri(logOptions.Elastic.ElasticServiceUrl)) new ElasticsearchSinkOptions(new Uri(logOptions.Elastic.ElasticServiceUrl))
{ {
AutoRegisterTemplate = true, AutoRegisterTemplate = true,
IndexFormat = IndexFormat = $"{appOptions.Name}-{environment?.ToLower()}"
$"{appOptions.Name}-{environment?.ToLower().Replace(".", "-")}-{DateTime.UtcNow:yyyy-MM}"
}); });
} }