Logging what MDriven does
No edit summary
No edit summary
Line 1: Line 1:
<html>
This sample contained a nice section that send all ECO sql-logs to the Output window
<div class="outdated-alert">
<p> <span> ❗🕜 Warning: </span> this article may contain outdated information. Consider before using any descriptions/solutions, otherwise it still can be helpful. <a href="https://wiki.mdriven.net/index.php/MDriven_Product_Line#Synonyms_and_name_changes"> <span> Help : Synonyms and name changes </a>
</p>
</div>
</html>
 
 
This sample contained a nice section that send all ECO sql-logs to the Output window in VS2010.
 


<html>
<html>
Line 22: Line 13:
</html>
</html>
[[Category:Visual Studio]]
[[Category:Visual Studio]]
[[Category:VS2010]]

Revision as of 08:06, 15 July 2022

This sample contained a nice section that send all ECO sql-logs to the Output window

Eco.Logging.EcoLogSwitches.LogSql = true;
Eco.Logging.EcoListener.Singleton.OnTraceLog += (sender, args) =>
    {
        System.Diagnostics.Trace.WriteLine(Thread.CurrentThread.Name + ":" + args.Message);
    };
Eco.Logging.EcoListener.StartListening();

This page was edited 84 days ago on 02/10/2024. What links here