//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 loyalsoft. All rights reserved. // Homepage: http://www.game7000.com/ // Feedback: http://www.game7000.com/ //------------------------------------------------------------ using GameFramework; using System.Diagnostics; namespace UnityGameFramework.Runtime { /// /// 日志工具集。 /// public static class Log { /// /// 打印调试级别日志,用于记录调试类日志信息。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_DEBUG_LOG 或 ENABLE_DEBUG_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_DEBUG_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] public static void Debug(object message) { GameFrameworkLog.Debug(message); } /// /// 打印调试级别日志,用于记录调试类日志信息。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_DEBUG_LOG 或 ENABLE_DEBUG_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_DEBUG_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] public static void Debug(string message) { GameFrameworkLog.Debug(message); } /// /// 打印调试级别日志,用于记录调试类日志信息。 /// /// 日志格式。 /// 日志参数 0。 /// 仅在带有 ENABLE_LOG、ENABLE_DEBUG_LOG 或 ENABLE_DEBUG_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_DEBUG_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] public static void Debug(string format, object arg0) { GameFrameworkLog.Debug(format, arg0); } /// /// 打印调试级别日志,用于记录调试类日志信息。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 仅在带有 ENABLE_LOG、ENABLE_DEBUG_LOG 或 ENABLE_DEBUG_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_DEBUG_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] public static void Debug(string format, object arg0, object arg1) { GameFrameworkLog.Debug(format, arg0, arg1); } /// /// 打印调试级别日志,用于记录调试类日志信息。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 日志参数 2。 /// 仅在带有 ENABLE_LOG、ENABLE_DEBUG_LOG 或 ENABLE_DEBUG_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_DEBUG_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] public static void Debug(string format, object arg0, object arg1, object arg2) { GameFrameworkLog.Debug(format, arg0, arg1, arg2); } /// /// 打印调试级别日志,用于记录调试类日志信息。 /// /// 日志格式。 /// 日志参数。 /// 仅在带有 ENABLE_LOG、ENABLE_DEBUG_LOG 或 ENABLE_DEBUG_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_DEBUG_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] public static void Debug(string format, params object[] args) { GameFrameworkLog.Debug(format, args); } /// /// 打印信息级别日志,用于记录程序正常运行日志信息。 /// /// 日志内容 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG 或 ENABLE_INFO_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_INFO_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] public static void Info(object message) { GameFrameworkLog.Info(message); } /// /// 打印信息级别日志,用于记录程序正常运行日志信息。 /// /// 日志内容 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG 或 ENABLE_INFO_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_INFO_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] public static void Info(string message) { GameFrameworkLog.Info(message); } /// /// 打印信息级别日志,用于记录程序正常运行日志信息。 /// /// 日志格式。 /// 日志参数 0。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG 或 ENABLE_INFO_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_INFO_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] public static void Info(string format, object arg0) { GameFrameworkLog.Info(format, arg0); } /// /// 打印信息级别日志,用于记录程序正常运行日志信息。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG 或 ENABLE_INFO_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_INFO_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] public static void Info(string format, object arg0, object arg1) { GameFrameworkLog.Info(format, arg0, arg1); } /// /// 打印信息级别日志,用于记录程序正常运行日志信息。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 日志参数 2。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG 或 ENABLE_INFO_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_INFO_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] public static void Info(string format, object arg0, object arg1, object arg2) { GameFrameworkLog.Info(format, arg0, arg1, arg2); } /// /// 打印信息级别日志,用于记录程序正常运行日志信息。 /// /// 日志格式。 /// 日志参数。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG 或 ENABLE_INFO_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_INFO_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] public static void Info(string format, params object[] args) { GameFrameworkLog.Info(format, args); } /// /// 打印警告级别日志,建议在发生局部功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG 或 ENABLE_WARNING_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_WARNING_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] public static void Warning(object message) { GameFrameworkLog.Warning(message); } /// /// 打印警告级别日志,建议在发生局部功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG 或 ENABLE_WARNING_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_WARNING_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] public static void Warning(string message) { GameFrameworkLog.Warning(message); } /// /// 打印警告级别日志,建议在发生局部功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数 0。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG 或 ENABLE_WARNING_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_WARNING_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] public static void Warning(string format, object arg0) { GameFrameworkLog.Warning(format, arg0); } /// /// 打印警告级别日志,建议在发生局部功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG 或 ENABLE_WARNING_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_WARNING_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] public static void Warning(string format, object arg0, object arg1) { GameFrameworkLog.Warning(format, arg0, arg1); } /// /// 打印警告级别日志,建议在发生局部功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 日志参数 2。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG 或 ENABLE_WARNING_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_WARNING_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] public static void Warning(string format, object arg0, object arg1, object arg2) { GameFrameworkLog.Warning(format, arg0, arg1, arg2); } /// /// 打印警告级别日志,建议在发生局部功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG 或 ENABLE_WARNING_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_WARNING_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] public static void Warning(string format, params object[] args) { GameFrameworkLog.Warning(format, args); } /// /// 打印错误级别日志,建议在发生功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG 或 ENABLE_ERROR_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_ERROR_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] public static void Error(object message) { GameFrameworkLog.Error(message); } /// /// 打印错误级别日志,建议在发生功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG 或 ENABLE_ERROR_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_ERROR_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] public static void Error(string message) { GameFrameworkLog.Error(message); } /// /// 打印错误级别日志,建议在发生功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数 0。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG 或 ENABLE_ERROR_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_ERROR_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] public static void Error(string format, object arg0) { GameFrameworkLog.Error(format, arg0); } /// /// 打印错误级别日志,建议在发生功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG 或 ENABLE_ERROR_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_ERROR_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] public static void Error(string format, object arg0, object arg1) { GameFrameworkLog.Error(format, arg0, arg1); } /// /// 打印错误级别日志,建议在发生功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 日志参数 2。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG 或 ENABLE_ERROR_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_ERROR_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] public static void Error(string format, object arg0, object arg1, object arg2) { GameFrameworkLog.Error(format, arg0, arg1, arg2); } /// /// 打印错误级别日志,建议在发生功能逻辑错误,但尚不会导致游戏崩溃或异常时使用。 /// /// 日志格式。 /// 日志参数。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG 或 ENABLE_ERROR_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_ERROR_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] public static void Error(string format, params object[] args) { GameFrameworkLog.Error(format, args); } /// /// 打印严重错误级别日志,建议在发生严重错误,可能导致游戏崩溃或异常时使用,此时应尝试重启进程或重建游戏框架。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG、ENABLE_ERROR_AND_ABOVE_LOG 或 ENABLE_FATAL_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_FATAL_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] [Conditional("ENABLE_FATAL_AND_ABOVE_LOG")] public static void Fatal(object message) { GameFrameworkLog.Fatal(message); } /// /// 打印严重错误级别日志,建议在发生严重错误,可能导致游戏崩溃或异常时使用,此时应尝试重启进程或重建游戏框架。 /// /// 日志内容。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG、ENABLE_ERROR_AND_ABOVE_LOG 或 ENABLE_FATAL_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_FATAL_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] [Conditional("ENABLE_FATAL_AND_ABOVE_LOG")] public static void Fatal(string message) { GameFrameworkLog.Fatal(message); } /// /// 打印严重错误级别日志,建议在发生严重错误,可能导致游戏崩溃或异常时使用,此时应尝试重启进程或重建游戏框架。 /// /// 日志格式。 /// 日志参数 0。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG、ENABLE_ERROR_AND_ABOVE_LOG 或 ENABLE_FATAL_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_FATAL_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] [Conditional("ENABLE_FATAL_AND_ABOVE_LOG")] public static void Fatal(string format, object arg0) { GameFrameworkLog.Fatal(format, arg0); } /// /// 打印严重错误级别日志,建议在发生严重错误,可能导致游戏崩溃或异常时使用,此时应尝试重启进程或重建游戏框架。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG、ENABLE_ERROR_AND_ABOVE_LOG 或 ENABLE_FATAL_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_FATAL_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] [Conditional("ENABLE_FATAL_AND_ABOVE_LOG")] public static void Fatal(string format, object arg0, object arg1) { GameFrameworkLog.Fatal(format, arg0, arg1); } /// /// 打印严重错误级别日志,建议在发生严重错误,可能导致游戏崩溃或异常时使用,此时应尝试重启进程或重建游戏框架。 /// /// 日志格式。 /// 日志参数 0。 /// 日志参数 1。 /// 日志参数 2。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG、ENABLE_ERROR_AND_ABOVE_LOG 或 ENABLE_FATAL_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_FATAL_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] [Conditional("ENABLE_FATAL_AND_ABOVE_LOG")] public static void Fatal(string format, object arg0, object arg1, object arg2) { GameFrameworkLog.Fatal(format, arg0, arg1, arg2); } /// /// 打印严重错误级别日志,建议在发生严重错误,可能导致游戏崩溃或异常时使用,此时应尝试重启进程或重建游戏框架。 /// /// 日志格式。 /// 日志参数。 /// 仅在带有 ENABLE_LOG、ENABLE_INFO_LOG、ENABLE_DEBUG_AND_ABOVE_LOG、ENABLE_INFO_AND_ABOVE_LOG、ENABLE_WARNING_AND_ABOVE_LOG、ENABLE_ERROR_AND_ABOVE_LOG 或 ENABLE_FATAL_AND_ABOVE_LOG 预编译选项时生效。 [Conditional("ENABLE_LOG")] [Conditional("ENABLE_FATAL_LOG")] [Conditional("ENABLE_DEBUG_AND_ABOVE_LOG")] [Conditional("ENABLE_INFO_AND_ABOVE_LOG")] [Conditional("ENABLE_WARNING_AND_ABOVE_LOG")] [Conditional("ENABLE_ERROR_AND_ABOVE_LOG")] [Conditional("ENABLE_FATAL_AND_ABOVE_LOG")] public static void Fatal(string format, params object[] args) { GameFrameworkLog.Fatal(format, args); } } }