In my application, I work on several thousand of document a day. I\'d like, in some cases some logs, one log by document. Then I\'d like for a specific target change the out
The reason why you get the error is that NLog knows nothing about "logDirectory" keyname. You may implement it by yourself (read instructions here) or use predefined ones from here.
Then you can use instructuions from here to change NLog targets during runtime.