예제 #1
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
            NativeDebugMethods.Log(String.Format(format, args), LogType.Error);
#endif
        }
예제 #2
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
            NativeDebugMethods.Log(msg, LogType.Error);
#endif
        }
예제 #3
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
            NativeDebugMethods.Log(msg, type);
#endif
        }