Repository.WriteToDiagnosticsLog

=First Available Method= Writes a message to the diagnostics log

Syntax

 * WriteToDiagnosticsLog(message, entrytype  XFRACASDiagnosticEntryType)

Parameters
 * message: Message to write to the diagnostics log
 * entryType: The type of diagnostics entry type, specified as XFRACASDiagnosticsEntryType

=Second Available Method= Writes exception information to the diagnostics log

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 ListOfXFRACASEntities SynthesisAPI.NameIdPair= MyRepository.GetAllXFRACASEntities i = 0  ListOfXFRACASEntities.GetUpperBound(0) MessageBox.Show(ListOfXFRACASEntities(i).Name) '     ex  Exception MyRepository.WriteToDiagosticsLog(ex, SynthesisAPI.XFRACASDiagnosticsEntryType.Error, "Reading Entities") '        MyRepository.WriteToDiagosticsLog("Unable to connect to repository", SynthesisAPI.XFRACASDiagnosticsEntryType.Warning)