In the following article, you can see how to dynamically set the target db connection string and Logger (namespaces) to log. https://www.c-sharpcorner.com/article/learn-nlog-advanced-usage/
In the current version of NLog, it is a thread-safe or rather a per-request safe because each request will have its own instance of the Logger class.