Skip to content

Wraps an ADO.NET DbConnection and logs all activity via LibLog

License

Notifications You must be signed in to change notification settings

lornemcintosh/AdoLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdoLogger

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).

Getting Started

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);

Built With

  • LibLog - logging abstraction

License

This project is licensed under the MIT License - see the LICENSE.TXT file for details

Acknowledgments

About

Wraps an ADO.NET DbConnection and logs all activity via LibLog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages