Exemple #1
0
        public static void Log(string sClass, string sMethod, string sMessage, _LogPriority prio)
        {
            string sMessageToLog;
            bool   bLogToEventLog   = false;
            bool   bLogToMessageBox = false;

            sMessageToLog = Priority(prio) + Where(sClass, sMethod) + sMessage + ".";

            Trace.WriteLine(sMessageToLog);

            if (bLogToEventLog)
            {
            }

            if (bLogToMessageBox)
            {
            }
        }
Exemple #2
0
        public void Log(string sMessage, _LogPriority prio)
        {
            string sMessageToLog;
            bool   bLogToEventLog   = false;
            bool   bLogToMessageBox = false;

            sMessageToLog = Priority(prio) + Where() + sMessage + ".";

            Trace.WriteLine(sMessageToLog);

            if (bLogToEventLog)
            {
                // todo
            }

            if (bLogToMessageBox)
            {
                // todo
            }
        }
Exemple #3
0
        public void Log(string sMessage, _LogPriority prio)
        {
            string sMessageToLog;
            bool bLogToEventLog = false;
            bool bLogToMessageBox = false;

            sMessageToLog = Priority(prio) + Where() + sMessage + ".";

            Trace.WriteLine(sMessageToLog);

            if ( bLogToEventLog )
            {
                // todo
            }

            if ( bLogToMessageBox )
            {
                // todo
            }
        }
Exemple #4
0
        private static string Priority(_LogPriority prio)
        {
            string sPriority = "";

            switch (prio)
            {
            case _LogPriority.Info:
                sPriority = "INF ";
                break;

            case _LogPriority.Warning:
                sPriority = "WAR ";
                break;

            case _LogPriority.Error:
                sPriority = "ERR ";
                break;
            }

            return(sPriority);
        }
Exemple #5
0
        private static string Priority(_LogPriority prio)
        {
            string sPriority = "";

            switch ( prio )
            {
                case _LogPriority.Info:
                    sPriority = "INF ";
                    break;

                case _LogPriority.Warning:
                    sPriority = "WAR ";
                    break;

                case _LogPriority.Error:
                    sPriority = "ERR ";
                    break;
            }

            return sPriority;
        }