示例#1
0
        /// <summary>
        /// Calls logger class to log message to COMMAND_LOG table.
        /// </summary>
        /// <param name="logType">The type of message to log - INFO, ERROR, ...</param>
        /// <param name="logMessage">The message to log</param>
        /// <param name="logContext">The context for the message</param>
        private void WriteToCommandLog(string logType, string logMessage, string logContext)
        {
            gtCommandLogger.gtCommandLogger gtCommandLogger = new gtCommandLogger.gtCommandLogger();
            gtCommandLogger.CommandNum  = -1;
            gtCommandLogger.CommandName = "GISAutomationBroker";
            gtCommandLogger.LogType     = logType;
            gtCommandLogger.LogMsg      = logMessage;
            gtCommandLogger.LogContext  = logContext;
            gtCommandLogger.logEntry();

            gtCommandLogger = null;
        }
示例#2
0
        /// <summary>
        /// Calls logger class to log message to COMMAND_LOG table.
        /// </summary>
        /// <param name="logType">The type of message to log - INFO, ERROR, ...</param>
        /// <param name="logMessage">The message to log</param>
        /// <param name="logContext">The context for the message</param>
        private void WriteToCommandLog(string logType, string logMessage, string logContext)
        {
            gtCommandLogger.gtCommandLogger gtCommandLogger = new gtCommandLogger.gtCommandLogger();
            gtCommandLogger.CommandNum  = m_CommandNumber;
            gtCommandLogger.CommandName = m_CommandName;
            gtCommandLogger.LogType     = logType;
            gtCommandLogger.LogMsg      = logMessage;
            gtCommandLogger.LogContext  = logContext;
            gtCommandLogger.logEntry();

            gtCommandLogger = null;
        }