As the title says: I would like to have Nlog to create a new file named "log.txt" on each application start. At the same time, I would like to have the old log archived with the filename as file created "date_time.txt".
Reasons:
1) I pretty much hate loooong logs, especialy for a small tasks applications, where you need to scroll thousand of lines to find the few lines from the last run.
2) I like having the log file with the static name. I can open LogExpert or some other log viewer and either have the log opened from previous session or at least quickly use "recent files". Having the log file created as datetime.txt - a pain to use.
3) Having the log on every application start, I need to have archiving of older logs, to be able to have a look at logs from days/weeks before.
The problem is - I can't find a way to achieve that with only using NLog configuration. From what I gathered, I either use log filename as datetime straight away, this way I achieve a new file on app start - which is not good (point 2). Or I use same name log eg: "log.txt" and use size limit, which still is not so usefull, as having the log represent only current/last run of the app.
Could I be missing something and there actually is a way to achieve this with only NLog configuration?
If not, what would be the easiest way to achieve this?