开发者

Stop .NET Firebird (2.6.5) provider writing all SQL to console

开发者 https://www.devze.com 2023-04-04 14:33 出处:网络
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 NHi

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

0

精彩评论

暂无评论...
验证码 换一张
取 消