03-11-2021 02:52 AM
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.
09-22-2021 06:06 AM
@sjakathi
You can create a child pipe line for log, and can be executed as per requirement i.e. when the job start it will the called and log will be written also at the end of the task you need to call the sub pipe line to update the log with status.
Make sure you choose the file action in writer snap as append.
09-22-2021 06:53 AM
You can follow the @PratapKr.Gayen’s approach of creating the child pipeline intended only for logging purposes.
But, just as an note. The append action only is supported for file, FTP,SFTP, FTPS protocols(as per documentation File Writer).
Regards,
Spiro Taleski