internal void FlushStartupMessages() { if ((this.OnLogString != null) && (this.queueStartupMessages != null)) { List<string> queueStartupMessages = this.queueStartupMessages; this.queueStartupMessages = null; foreach (string str in queueStartupMessages) { LogEventArgs e = new LogEventArgs(str); this.OnLogString(this, e); } } else { this.queueStartupMessages = null; } }
public void LogString(string sMsg) { if (CONFIG.bDebugSpew) { Trace.WriteLine(sMsg); } if (this.queueStartupMessages != null) { lock (this.queueStartupMessages) { this.queueStartupMessages.Add(sMsg); } } else if (this.OnLogString != null) { LogEventArgs e = new LogEventArgs(sMsg); this.OnLogString(this, e); } }
private void FiddlerApplication_OnLogString(object sender, Fiddler.LogEventArgs e) { Console.WriteLine("** LogString: " + e.LogString); }
public void FiddlerApplication_Log_OnLogString(object sender, LogEventArgs e) { log(e.LogString); }