Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public void LogSuccessfulEvent(string user, string method)
        {
            string sql = SQLHelper.GetSqlCommand(user, method, "NULL", "DBMID");

            SQLHelper.ExecuteCommand(sql);
        }
Ejemplo n.º 3
0
        public void LogErrorEvent(string user, string method, string errorMessage)
        {
            string sql = SQLHelper.GetSqlCommand(user, method, errorMessage, "DBMID");

            SQLHelper.ExecuteCommand(sql);
        }