Merge branch 'develop'

This commit is contained in:
meysamhadeli 2022-11-20 16:23:39 +03:30
commit 1168fd7bbd

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}"
}); });
} }