示例#1
0
 public static void TraceWarning(string sessionId, string format, params object[] objparams)
 {
     TraceHelper.TraceString(sessionId, TraceEventType.Warning, TraceHelper.CombineTraceString(format, objparams));
 }
示例#2
0
 public static void TraceException(string sessionId, TraceEventType traceLevel, string description, Exception exception)
 {
     TraceHelper.TraceString(sessionId, traceLevel, TraceHelper.Exception2String(description, exception));
 }
示例#3
0
 /// <summary>
 /// trace event
 /// </summary>
 /// <param name="traceLevel">the trace level.</param>
 /// <param name="format">the format string.</param>
 /// <param name="objparams">the parameters.</param>
 public static void TraceEvent(TraceEventType traceLevel, string format, params object[] objparams)
 {
     TraceHelper.TraceString("0", traceLevel, TraceHelper.CombineTraceString(format, objparams));
 }
示例#4
0
 public static void TraceException(string sessionId, Exception exception)
 {
     TraceHelper.TraceString(sessionId, TraceEventType.Error, TraceHelper.Exception2String(null, exception));
 }