コード例 #1
0
 public UsLogPacket(UsCmd c)
 {
     SeqID   = (ushort)c.ReadInt16();
     LogType = (UsLogType)c.ReadInt32();
     Content = c.ReadString();
     RealtimeSinceStartup = c.ReadFloat();
 }
コード例 #2
0
ファイル: UsLogPacket.cs プロジェクト: mc-gulu/utrace
 public UsLogPacket(UsCmd c)
 {
     SeqID = (ushort)c.ReadInt16();
     LogType = (UsLogType)c.ReadInt32();
     Content = c.ReadString();
     RealtimeSinceStartup = c.ReadFloat();
 }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
ファイル: UsLoggingUtil.cs プロジェクト: zhukunqian/usmooth
        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;
            }
        }
コード例 #6
0
ファイル: UsLoggingUtil.cs プロジェクト: zhukunqian/usmooth
        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;
            }
        }