public void LogAndTraceException(Exception exception, string messageFormat, params object[] args) { string diagString = EdgeSyncDiag.GetDiagString(messageFormat, args); this.LogSession.LogException(EdgeSyncLoggingLevel.Low, EdgeSyncEvent.TargetConnection, exception, diagString); this.Tracer.TraceError <string, Exception>((long)this.GetHashCode(), "{0}; Exception: {1}", diagString, exception); }
public void LogAndTraceInfo(EdgeSyncLoggingLevel level, string messageFormat, params object[] args) { string diagString = EdgeSyncDiag.GetDiagString(messageFormat, args); this.LogSession.LogEvent(level, EdgeSyncEvent.TargetConnection, null, diagString); this.Tracer.TraceDebug <string>((long)this.GetHashCode(), "{0}", diagString); }
public string LogAndTraceError(string messageFormat, params object[] args) { string diagString = EdgeSyncDiag.GetDiagString(messageFormat, args); this.LogSession.LogEvent(EdgeSyncLoggingLevel.Low, EdgeSyncEvent.TargetConnection, null, diagString); this.Tracer.TraceError <string>((long)this.GetHashCode(), "{0}", diagString); return(diagString); }