Log file creation

I have created a log file and named it as (path)+System.DateTime.Now.ToString(“ddMMyyyyhhmm”)+“.txt”
Now each minute a new logfile gets created. I want to keep the same naming scheme. I want to create a single log file for a single process run and the datetime denotes the time of starting of the process. What can be done?


please use this step inside of file log entry.
but please use the file name as file.txt. so every time it will overwritten and append the new text inside the notepad.

Hi @Pratik

Try creating Log.xaml and Invoke for Every new Message. PFA xaml for your reference.
Logs_Generation.xaml (6.4 KB) Main.xaml (8.6 KB)

Snehal Kapse.

1 Like