🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Logging what MDriven does
No edit summary
(Updated Edited template to July 12, 2025.)
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<html>
<message>Write the content here to display this box</message>
<div class="outdated-alert">
This sample contains a helpful section that sends all ECO SQL logs to the Output window:
<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 21: Line 13:
</pre>
</pre>
</html>
</html>
[[Category:Visual Studio]]
{{Edited|July|12|2025}}

Revision as of 05:51, 20 January 2025

This page was created by Alexandra on 2018-12-04. Last edited by Edgar on 2025-08-22.

This sample contains a helpful section that sends 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();

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments