I need to have a log that records the time of which file that was read by the watched folder. Everytime what i put a file, in the watched folder, and the watched folder gets it, the records is set on that log.
I thought of using file read->append text->file over-write functionality in a short lived process. This will work fine for creating a custom log file provided that you consider following:
- This needs to be a short lived process or the database will grow a lot.
- You should clear the log file after it reaches certain size or it will be too slow down the track.
I've a sample lca which I created to achieve this and i'm happy to share.
To do this logging properly I would suggest that you create a table in a database and you should insert log messages there. This will allow you to prepare report will be more useful in production support. And implementing this would be easier than anything else.