Repository.XFRACAS.WriteExceptionToDiagnosticsLog

Syntax

 * WriteToDiagnosticsLog(exObject System.Exception, entrytype  XFRACASDiagnosticEntryType,  comment)

Parameters
 * exObject: Represents an error that occurs during application execution
 * entryType: The type of diagnostics entry type, specified as XFRACASDiagnosticsEntryType
 * comment: Optional comment to write to the diagnostics log

= Usage Example =

Success= MyRepository.ConnectToRepository("RepositoryFileNamePath") success MyRepository.WriteToDiagnosticsLog("Successfully connected to repository", SynthesisAPI.XFRACASDiagnosticsEntryType.Information) ListOfXFRACASEntitiesSynthesisAPI.NameIdPair = MyRepository.GetAllXFRACASEntities i= 0ListOfXFRACASEntities.GetUpperBound(0) MessageBox.Show(ListOfXFRACASEntities(i).Name) exException MyRepository.WriteToDiagosticsLog(ex, SynthesisAPI.XFRACASDiagnosticsEntryType.Error, "Reading Entities")