Logging what MDriven does
(Automatically adding template at the end of the page.)
(Adding message template to the top of the page)
Line 1: Line 1:
{{message|Write the content here to display this box}}
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:



Revision as of 22:18, 16 June 2024

Write the content here to display this box

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