File History

Hi All,

I have a below requirement any suggestions will be great help.

I want to log the file history into one log file for example when ever i read an input file I want to write an entry into the log file saying that file is read and if we are able to process the file successfully then i want to write another entry into the file saying that file processed successfully and moved to archive.

Can you please suggest the best way to implement this.

the logic in the below image is good way to implement or once the task is executed from that we can excess the complete execution history from that we can write the file history.