Esempio n. 1
0
        /// <summary>
        /// Logs a message to the console, regardless of log_verbosity settings
        /// </summary>
        public static void LogError(string msg)
        {
#if UNIT_TESTING
            System.Console.WriteLine(msg);
#else
            DebugInterop.Log(msg, LogType.Error);
#endif
        }
Esempio n. 2
0
        /// <summary>
        /// Logs a message to the console
        /// </summary>
        public static void Log(string msg, LogType type = LogType.Message)
        {
#if UNIT_TESTING
            System.Console.WriteLine(msg);
#else
            DebugInterop.Log(msg, type);
#endif
        }
Esempio n. 3
0
        /// <summary>
        /// Logs an error to console
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        public static void LogError(string format, params object[] args)
        {
#if UNIT_TESTING
            System.Console.WriteLine(format, args);
#else
            DebugInterop.Log(String.Format(format, args), LogType.Error);
#endif
        }
Esempio n. 4
0
        /// <summary>
        /// Logs a message to the console
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        public static void Log(string format, LogType type = LogType.Message, params object[] args)
        {
#if UNIT_TESTING
            System.Console.WriteLine(format, args);
#else
            DebugInterop.Log(String.Format(format, args), type);
#endif
        }