I'm trying to output information to the log, I do " Console.Write("22s");" . After looking at the Log, I do not find this text there. How to correctly output it to Log?
if (oSession.url.Contains("google.com")) { Console.Out.Write("22s"); }
1 Answer, 1 is accepted
1
Nick Iliev
Telerik team
answered on 20 Aug 2021, 02:29 PM
| edited on 24 Aug 2023, 12:46 PM
Hello Alexander,
Fiddler 2.2.8 introduced a lightweight Logging mechanism.
If you want to get copies of log messages, write the following code in your extension:
FiddlerApplication.Log.OnLogString += new EventHandler<LogEventArgs>(YourEventHandler);
and implement an event handler to capture log events. Because logging may occur from background threads, you should use Invoke or BeginInvoke to marshal any UI updates to the UI thread:
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.