public static void Log(QLogger.Level level, string message, bool includeTimeStamp = false) { bool isEditorMode = IsRunningInEditorMode; if (includeTimeStamp) { message = "[Time:" + Time.realtimeSinceStartup + "]" + message; } if (level == QLogger.Level.Info) { if (m_logLevel <= level || isEditorMode) { Debug.Log("[QLearningSpace:Info] " + message); } } else if (level == QLogger.Level.Warnings) { if (m_logLevel <= level || isEditorMode) { Debug.LogWarning("[QLearningSpace:Warn] " + message); } } else if (level == QLogger.Level.Errors) { Debug.LogError("[QLearningSpace:Err] " + message); } }
public static void SetLoggingLevel(QLogger.Level level) { m_logLevel = level; }