I am using NLog for logging purpose.
My code is as follows:
Please note that you could use layout renderers in the filename (even custom layout renderers) and so this will also make multiple files:
In this example it's a log file for each loglevel (fatal, error, warn, info, debug, trace)