예제 #1
0
        void IUDPBoxLogger.Log(string content, EUDPBoxLogType type)
        {
            var timeStr = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

            switch (type)
            {
            case EUDPBoxLogType.Log:
                mStringBuilder.AppendLine($"[{timeStr}][Log]{content}");
                break;

            case EUDPBoxLogType.Warning:
                mStringBuilder.AppendLine($"[{timeStr}][Warning]{content}");
                break;

            case EUDPBoxLogType.Error:
                mStringBuilder.AppendLine($"[{timeStr}][Error]{content}");
                break;

            default:
                break;
            }
        }
예제 #2
0
 void IUDPBoxLogger.Log(string content, EUDPBoxLogType type)
 {
 }