예제 #1
0
        /// <summary>
        /// Logs a message with log level 0 to the console
        /// </summary>
        /// <param name="message">The message to output to the console</param>
        public void Log(string message)
        {
            // ignore it if its above the threshold
            if ((mLogLevelThreshold >= 0) && (mDefaultLogLevel > (uint)mLogLevelThreshold))
            {
                return;
            }

            ConsoleMessage msg = new ConsoleMessage(mDefaultLogLevel, mCurrentTime.TotalRealTime,
                                                    DateTime.Now.TimeOfDay, message);

            mLog.Add(msg);

            if (MessageLogged != null)
            {
                MessageLogged(msg);
            }

            if (mAutoScrollOnOutput)
            {
                mCurrentLine = mLog.Count - 1;
            }
        }
예제 #2
0
        /// <summary>
        /// Logs a message with log level 0 to the console
        /// </summary>
        /// <param name="message">The message to output to the console</param>
        public void Log(string message)
        {
            // ignore it if its above the threshold
            if ((mLogLevelThreshold >= 0) && (mDefaultLogLevel > (uint)mLogLevelThreshold))
                return;

            ConsoleMessage msg = new ConsoleMessage(mDefaultLogLevel, mCurrentTime.TotalRealTime,
                DateTime.Now.TimeOfDay, message);
            mLog.Add(msg);

            if (MessageLogged != null)
                MessageLogged(msg);

            if (mAutoScrollOnOutput)
                mCurrentLine = mLog.Count - 1;
        }