I'd like to use NLog in my app for general logging. But I want to 'Hard Code' a specific target and rule to log messages from my data load routines to a specific database table.
Can I programatically add rules and targets once the logger has been created?
The one issue with this that I can see is if autoReload="true" gets set in the config file I guess my hardcoded config will be removed if the config file is changed.
The other way I can think to do this is to have a seperate data load logger and main logger, so could I create a target in the data load logger of the main logger so any warnings or errors in the load process are logged by both?
I'm new to NLog so the above might be total garbage.