AdoLogger is a simple .NET library that wraps an ADO.NET DbConnection and logs all activity, including SQL statements, and connection open/close events. It uses LibLog so you can use the logging library of your choice (NLog, Log4Net, Serilog or Loupe).
Just wrap your existing connection (of any type) in an AdoLogger LoggingDbConnection:
SqliteConnection conn = new SqliteConnection("Data Source= :memory:; Cache = Shared");
var loggingConn = new LoggingDbConnection(conn);
- LibLog - logging abstraction
This project is licensed under the MIT License - see the LICENSE.TXT file for details
- AdoLogger was heavily inspired by MiniProfiler.