예제 #1
0
        public void LogError(Exception e, string message, params object[] args)
        {
            ServerLog.LogAsyncExceptionMessage(new LogExceptionMessage(PandaChat.BuildMessageNoLocal(GetFormattedMessage(string.Format(message, args)), ChatColor.red), e));

            if (e.InnerException != null)
            {
                LogError(e.InnerException);
            }
        }
예제 #2
0
        internal static void LogError(Exception e)
        {
            ServerLog.LogAsyncExceptionMessage(new Pipliz.LogExceptionMessage(PandaChat.BuildMessage("Exception", ChatColor.red), e));

            if (e.InnerException != null)
            {
                LogError(e.InnerException);
            }
        }
예제 #3
0
        internal static void LogError(Exception e, string message)
        {
            ServerLog.LogAsyncExceptionMessage(new Pipliz.LogExceptionMessage(PandaChat.BuildMessage(GetFormattedMessage(message), ChatColor.red), e));

            if (e.InnerException != null)
            {
                LogError(e.InnerException);
            }
        }
예제 #4
0
        public void LogError(Exception e, string message)
        {
            ServerLog.LogAsyncExceptionMessage(new LogExceptionMessage(PandaChat.BuildMessageNoLocal(GetFormattedMessage(message), ChatColor.red), e));

            LogError(e);

            if (e.InnerException != null)
            {
                LogError(e.InnerException);
            }
        }
예제 #5
0
        public void LogError(Exception e)
        {
            ServerLog.LogAsyncExceptionMessage(new LogExceptionMessage(PandaChat.BuildMessageNoLocal("Exception", ChatColor.red), e));

            lock (_logQueue)
            {
                _logQueue.Enqueue(e.Message);
                _logQueue.Enqueue(e.StackTrace);
            }
            _loggerSemaphore.Set();

            if (e.InnerException != null)
            {
                LogError(e.InnerException);
            }
        }