Watched folder log

Avatar

Avatar

Mancini21

Avatar

Mancini21

Mancini21

04-08-2009

Hi guys, i have a question.

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.

How can i do this?

Regards.

Mancini.

View Entire Topic

Avatar

Avatar

parth_pandya

Avatar

parth_pandya

parth_pandya

06-08-2009

Hi,

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.

hope this helps

Parth Pandya

http://blog.pandyaparth.com