예제 #1
0
        public int LogErrorEvent(string user, string method, string errorMessage)
        {
            int crt = SQLHelper.GetCritcalLevel(method, errorMessage, N, M);

            if (crt > 4)
            {
                Console.WriteLine("*********ALARM**********");
            }

            string sql = SQLHelper.GetSqlCommand(user, method, errorMessage, "DBMID");

            SQLHelper.ExecuteCommand(sql);

            return(crt);
        }
예제 #2
0
        public void LogSuccessfulEvent(string user, string method)
        {
            string sql = SQLHelper.GetSqlCommand(user, method, "NULL", "DBMID");

            SQLHelper.ExecuteCommand(sql);
        }
예제 #3
0
        public void LogErrorEvent(string user, string method, string errorMessage)
        {
            string sql = SQLHelper.GetSqlCommand(user, method, errorMessage, "DBMID");

            SQLHelper.ExecuteCommand(sql);
        }