예제 #1
0
파일: TLogger.cs 프로젝트: pcion123/TinyBee
        public static void Log(LogType type, string message)
        {
            if (mInstance == null)
            {
                mInstance = new TLogger();
            }

            switch (type)
            {
            case LogType.Error:
                mInstance.LogError(message);
                break;

            case LogType.Assert:
                break;

            case LogType.Warning:
                mInstance.LogWarning(message);
                break;

            case LogType.Log:
                mInstance.Log(message);
                break;

            case LogType.Exception:
                break;
            }
        }
예제 #2
0
파일: TLogger.cs 프로젝트: pcion123/TinyBee
        public static void Log(LogType type, Exception exception)
        {
            if (mInstance == null)
            {
                mInstance = new TLogger();
            }

            switch (type)
            {
            case LogType.Error:
            case LogType.Assert:
            case LogType.Warning:
            case LogType.Log:
                break;

            case LogType.Exception:
                mInstance.LogException(exception);
                break;
            }
        }