I would like my application to repeatedly write a large amount of data to separate "log" files during the application lifetime. (Call each instance of such a file a "data file".) The data is written to this file in a single write operation (as it's a string). In the main application log file, the application would write the path name of the data file that it creates, so that I can identify that data file that was created at that point in its execution.
I could create the data file using the .NET file API, but I thought it would be useful to use NLog, as I could enable the writing of the file via configuration. However, I cannot see how to define a Target whose name is unique for each write operation. As an alternative, I could programmatically create a Target and add it to the LogManager's Configuration object each time I write a data file, and then delete the Target afterwards.
This seems plausible, but before implementing it I'd like to know if others had a similar requirement and how they implemented it.