示例#1
0
        public static void Exception(string tag, string format, Exception exp, PObject context, params object[] ps)
        {
            string msg = Format(format, ps);

            if (Thread.CurrentThread.ManagedThreadId == MainThreadID)
            {
                ExpImpl?.Invoke(tag, msg, exp, context);
            }
            else
            {
                lock (ExpThreadQueue)
                {
                    ExpThreadQueue.Enqueue(LogExp.Make(tag, msg, exp, context));
                }
            }
        }
示例#2
0
 public Filter(LogExp new_expression, string new_name_field, string new_filter_value)
 {
     expression   = new_expression;
     name_field   = new_name_field;
     filter_value = new_filter_value;
 }