I am building a windows service.
I am trying to have miniprofiler, intercept ado.net calls and hand the messages to my application's logging system.
All miniprofiler needs to do is to call a static method Log(string text).
I went through the following post and learned how to intercept ado.net calls:
Using MiniProfiler for direct ADO.net calls
It seems that the only unsolved puzzle is to have miniprofile call my log method. How can I do that?
I went through the site http://miniprofiler.com/, but the documentation is minimal.