public void Print(string log, HTMLDebugCategory debugInfo, bool printOnGlobal) { if (this.LogOnlyErrors && (!this.LogOnlyErrors || debugInfo != HTMLDebugCategory.Error) && (!this.LogOnlyErrors || debugInfo != HTMLDebugCategory.Warning)) { return; } HTMLDebugData htmlDebugData = new HTMLDebugData(log, debugInfo); lock (this._logQueue) this._logQueue.Enqueue(htmlDebugData); if (!printOnGlobal) { return; } Debug.Print(log); }
public void Print(string log, HTMLDebugCategory debugInfo = HTMLDebugCategory.General) => this.Print(log, debugInfo, true);
internal HTMLDebugData(string log, HTMLDebugCategory info) { this._log = log; this.Info = info; this._currentTime = DateTime.Now.ToString("yyyy/M/d h:mm:ss.fff"); }