🚀 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.)
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<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 13: Line 14:
</html>
</html>
[[Category:Visual Studio]]
[[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