So I've got this data access layer, and I also want to log to the database. In the spirit of eating my own dog food, I want to use my data access layer to do the logging. However, I also want to log the data access itself. Like so:
App
||
V
Log
||
V
Data=>Log
Am I at risk of getting into a feedback loop? If so, how should I avoid it? Could the references for the project loop onto each other and cause difficulty building? How have you successfully approached this (anti?) pattern in the past?