Beispiel #1
0
        public static void Log(Constants.Log importance, string message)
        {
#if !DEBUG
            if (importance == Constants.Log.Verbose)
            {
                return;
            }
#endif
            CKernel.NewLogMessage(importance, CKernel.Globalization[message]);
        }
Beispiel #2
0
        public static void Log(Constants.Log importance, string message, Object arg1, Object arg2)
        {
#if !DEBUG
            if (importance == Constants.Log.Verbose)
            {
                return;
            }
#endif
            string translatedMsg = CKernel.Globalization[message];
            try
            {
                CKernel.NewLogMessage(importance, String.Format(translatedMsg, arg1, arg2));
            }
            catch
            {
                Debug.Write("Invalid  message format:" + message + "\n");
            }
        }