I have a text file parsing system which extracts data from content files and inserts that data into a MYSQL database. I wrote some of it, and some of it was already written when I started. There is a very high number of files from which this information comes from.
As of late the data in the database has been a little off. I want to somehow keep track of which parsing scripts are updating which database.tables during the parsing process. This process happens automatically of off a live data feed from the company which provides our content files.
What I'm asking is: Is there a way by which I can write a script which can monitor the database and when an INSERT/UPDATE/REPLACE query is run, this script finds the source of the query and logs it into a text file? I'd rather do this than add print statements and OUTPUT filehandles to every single one of the parsing scripts.
Thanks in advance for any suggestions. Please let me know if I'm not being clear on this.
Amel - f.k.a. - kel
In reply to Database/Process Logging by dsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |