Logging what MDriven does
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This sample contained a nice section that send all ECO sql-logs to the Output window | |||
This sample contained a nice section that send all ECO sql-logs to the Output window | |||
<html> | <html> | ||
Line 22: | Line 13: | ||
</html> | </html> | ||
[[Category:Visual Studio]] | [[Category:Visual Studio]] | ||
Revision as of 08:06, 15 July 2022
This page was created by Alexandra on 2018-12-04. Last edited by Edgar on 2025-08-22.
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();