❔ Is it possible to log for the user (not dev) with localization?
Given that a multi-lingual app exists
And it is currently configured to some language
When something is logged via
ILogger
Then the log message is written in the configured language
Is this possible? If so, how?6 Replies
You would need to load the log message template from localized resource files.
Why though? Log in English
Logs are for developers, not end users
Indeed you are correct. I suppose I've used the incorrect term... the logging I'm interested in is supposed to be read by the user. E.g., an engineer needs to read a report (logging) of some running process and operate some machine based on said report
I think the answer is you just get the localized strings like in any other localized application.
Provide localized resources for languages and cultures in an ASP.NE...
Learn how to provide localized resources for localizing content of an ASP.NET Core app into different languages and cultures.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.