I'm working on a php project which is processing and modifying data entries on a large scale. Data is taken from database and goes through 7 validation tests. Data is then sorted and inserted to database again. This process is time consuming and difficult to track errors and failures.
I want to create log writer class for my application.
There are basically two options:
- writing log in text file
- writing log in Database
which method is more efficient or any other options?