This commit is contained in:
CortexCore
2023-08-11 23:57:37 +08:00
parent 936a94c84b
commit 75889ec34f
149 changed files with 6524 additions and 1043 deletions

View File

@@ -4,27 +4,24 @@ namespace BITKit
{
public static class BIT4Log
{
const string _debugLevel = "DebugLevel";
#if UNITY_EDITOR
[UnityEngine.RuntimeInitializeOnLoadMethod]
private static void Reload()
{
OnLog = null;
OnException = null;
OnWarning = null;
OnSetConsoleColor = null;
OnNextLine = null;
}
#endif
public static event Action<string> OnLog;
public static event Action<Exception> OnException;
public static event Action<string> OnWarning;
public static event Action<ConsoleColor> OnSetConsoleColor;
public static event Action OnNextLine;
private static bool LogTime;
static Type currentType;
[ExcuteOnAwake]
public static void Start()
{
}
[ExcuteOnStop]
public static void Stop()
{
OnLog = null;
OnException = null;
OnWarning = null;
OnNextLine = null;
}
private static Type currentType;
[BITCommand]
public static void UseLogTime()
{