aspnet/Logging

Allow to specify the Culture used in log-values

gfoidl opened this issue · 2 comments

The culture is fixed to the invariant culture. I'd like to configure the culture used in

return string.Format(CultureInfo.InvariantCulture, _format, values ?? EmptyArray);

Default should remain invariant, but via config a different culture should be allowed.

For Europeans like me especially date-formats are odd, and like today (06/01/2018) I'll get easily trapped by 6th Jan 2018 😉

Should we go for this or are there any reasons to stick to invariant culture?

Thanks for the report, @gfoidl.

@davidfowl was there any good (or historical) reason why this wasn't configurable? Or is it just a miss?

We don't see a good way to achieve this at the abstraction level. One option would be using a sink that supports Culture.