示例#1
0
        public void PrintLog()
        {
#if DEBUG
            lock (GlobalLock)
            {
                if (LogLines != null)
                {
                    string[] Lines = LogLines.Split('\n');
                    foreach (string Line in Lines)
                    {
                        OutputDebugString(Line);
                    }

                    LogLines = null;
                }
            }
#endif
        }
        /// <summary>
        /// Prints log traces on the debugging terminal.
        /// </summary>
        public void PrintLog()
        {
            if (IsLogOn)
            {
                lock (GlobalLock)
                {
                    if (LogLines != null)
                    {
                        string[] Lines = LogLines.Split('\n');
                        foreach (string Line in Lines)
                        {
                            PrintLine(Line);
                        }

                        LogLines = null;
                    }
                }
            }
        }