Logging what MDriven does
No edit summary
(Replacing message template with parser tag)
 
(4 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:
<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:


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

Latest revision as of 07:44, 17 June 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 95 days ago on 06/17/2024. What links here