I am using NLog , and for each client logged into the system I would like to create a behavior for generating logs as follows:
[nome-cliente-1]-[dataAtual].txt
[nome-cliente-2]-[dataAtual].txt
Ex: Joao-da-silva-01-11-2016.txt
I would like the information to be written to the generated file only on the day. If he arrived at midnight he would another file, so that there is one file per day for each client.
- Is it possible to do this?
I searched for tutorials but did not find anything like it.