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
This page was created by Alexandra on 2018-12-04. Last edited by Edgar on 2025-08-22.
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();