Logging what MDriven does
No edit summary
(Automatically adding template at the end of the page.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This sample contains a nice 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:


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

Latest revision as of 15:36, 10 February 2024

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();

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