Logging what MDriven does
(Adding message template to the top of the page)
(Replacing message template with parser tag)
 
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:



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