示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }