public UsLogPacket(UsCmd c) { SeqID = (ushort)c.ReadInt16(); LogType = (UsLogType)c.ReadInt32(); Content = c.ReadString(); RealtimeSinceStartup = c.ReadFloat(); }
private static bool IsCallstackFiltered(UsLogType type) { switch (s_logCallstackLevel) { case eLogCallstackLevel.Lv0_Hidden: return(true); case eLogCallstackLevel.Lv1_ShownOnExceptionsOnly: return(type != UsLogType.Exception); case eLogCallstackLevel.Lv2_ShownIfPossible: return(false); default: return(true); } }
private static bool IsLogFiltered(UsLogType type) { switch (s_logLevel) { case eLogLevel.Lv0_Silent: return(true); case eLogLevel.Lv1_ErrorsAndExceptions: return(type == UsLogType.Assert || type == UsLogType.Warning || type == UsLogType.Log); case eLogLevel.Lv2_WarningsAndAsserts: return(type == UsLogType.Log); case eLogLevel.Lv3_Logs: default: return(false); } }
private static bool IsLogFiltered(UsLogType type) { switch (s_logLevel) { case eLogLevel.Lv0_Silent: return true; case eLogLevel.Lv1_ErrorsAndExceptions: return type == UsLogType.Assert || type == UsLogType.Warning || type == UsLogType.Log; case eLogLevel.Lv2_WarningsAndAsserts: return type == UsLogType.Log; case eLogLevel.Lv3_Logs: default: return false; } }
private static bool IsCallstackFiltered(UsLogType type) { switch (s_logCallstackLevel) { case eLogCallstackLevel.Lv0_Hidden: return true; case eLogCallstackLevel.Lv1_ShownOnExceptionsOnly: return type != UsLogType.Exception; case eLogCallstackLevel.Lv2_ShownIfPossible: return false; default: return true; } }