Search code examples
oracle-databaseloggingconfigurationnpoco

Logging through configuration NPoco


Several columns of a table are not being updated on our production environment, but are working properly on acceptance environment. They should be the same, especially when it comes to the database.

I'd like to investigate the error through logging.
Is there a way to enable that through configuration?

EntityFramework has extensive logging and tracing options.
But of course that's much more complicated, this may not be possible with a low footprint framework like NPoco.


Solution

  • You can use an Interceptor to capture the command and details then log this. Previously you had to create a derived class from database and override various members.