コード例 #1
0
        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);
        }
コード例 #2
0
 public void Print(string log, HTMLDebugCategory debugInfo = HTMLDebugCategory.General) => this.Print(log, debugInfo, true);
コード例 #3
0
 internal HTMLDebugData(string log, HTMLDebugCategory info)
 {
     this._log         = log;
     this.Info         = info;
     this._currentTime = DateTime.Now.ToString("yyyy/M/d h:mm:ss.fff");
 }