Example Trace Metaconnetor LC LSX Code

Example Trace Metaconnector LotusScript® Extensions (LC LSX) code is shown as follows.

Dim traceCon As New LCConnection("trace")
' assign properties specific to the trace metaconnector
traceCon.ConnectorName = "db2"
traceCon.LogFilename = "c:\lotus\domino\leidebug.out" ' filename to write output.
traceCon.OutputRecord = 8 + 4 + 2  ' send output with timestamps to LEI console window and to a file.
' assign properties needed by the DB2 connector.
traceCon.Database = "STAMPS"
traceCon.UserID = "MARKTIME"
traceCon.Password = "wiegela"
traceCon.Metadata = "COLLECTION"
traceCon.Connect
...