Suppose we are writing the following structured log message
logger.Info("User's Password is {Password}", "1234567890");
I would like to mask a password property because it is a sensitive data. I found this issue but I think it is a very difficult way.
For example, I have found the extension that resolves a similar task for serilog. It is very simple to use. But I didn't find any useful information for Nlog.
How to achieve it with nlog library? I will appreciate any suggestions.