Logging what MDriven does

This sample contained a nice section that send 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 84 days ago on 02/10/2024. What links here