Stop .NET Firebird (2.6.5) provider writing all SQL to console
The new .NET Firebird provider is writing A开发者_开发问答LL SQL to the console which slows down the execution of our program in Visual Studio. We use NHibernate and monitor all SQL commands using NHibernate Profiler.
Here is a link to the new logging feature in the .NET provider;
http://blog.cincura.net/232387-improved-command-logging-in-ado-net-provider-for-firebird/Is there any way we can disable the logging of SQL to the console but still retain all other logging?
Using Visual Studio 2010
You can see the solution in follow up post. Basically just remove all listeners (Visual Studio attached by default the one that put messages into Output Window).
Have you considered recompiling the source code?
If so look for the method LogCommand in FBCommand.cs
精彩评论