🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Logging what MDriven does
(Adding message template to the top of the page)
(Updated Edited template to July 12, 2025.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
This sample contains a helpful section that sends all ECO SQL logs to the Output window:
This sample contains a helpful section that sends all ECO SQL logs to the Output window:


Line 14: Line 14:
</html>
</html>
[[Category:Visual Studio]]
[[Category:Visual Studio]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 05:51, 20 January 2025

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

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