Trace Metaconnetor の LC LSX コードのサンプル

Trace Metaconnector の LC LSX (LotusScript® Extensions) コードのサンプルを以下に示します。

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
...